This repository contains useful Azure functions for LORIOT users:
Import devices from LORIOT to Azure IoT Hub:
- ImportDevices: Http triggered function
- ScheduledImportDevices: Time triggered function to ensure regular syncing of new devices
- IOT_HUB_OWNER_CONNECTION_STRING: IoT Hub connection string—primary key for iothubowner
HostName=myiothub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=1nMDaC6ArtFRJVG/DYlbZnxJ+gMHRv9nr8KUSoem0t0=
- LORIOT_SERVER: LORIOT network server url
eu1.loriot.io
- LORIOT_API_KEY: LORIOT user API key
AAAANgXyM8bYn71AbFBjAgd08-pkBiE50rcdb_fF8kADixHi0
- IMPORT_DEVICES_SCHEDULE_EXP: Schedule expression for ScheduledImportDevices time trigger
0 0 0 * * *
- LORIOT_APPS (optional): List of LORIOT application IDs (comma separated). If not defined, all devices from all applications will be imported.
BE7A2148,BE7A25C0
Route incoming LORIOT messages
- Routing: IoT Hub triggered function that parses every device uplink
- IOT_HUB_ENDPOINT: IoT Hub Event Hub-compatible endpoint
Endpoint=sb://ihsuprodamres999dednamespace.servicebus.windows.net/;SharedAccessKeyName=iothubowner;SharedAccessKey=1nSEaB6AftSRJVG/DYlbZnxJ+gMHRa9nr8KUSoem0t0=;EntityPath=iothub-ehub-loriot-iot-9127777-ff7bd7b7d8