Azure IoT Hub uplink
Send device-to-cloud messages to Azure IoT Hub.
An uplink runs on a Site Runtime and subscribes to device groups; every value it receives is sent on. See Uplinks for the flow and the payload format.
Settings
| Parameter | Type | Default | Range / options | Required | Description |
|---|---|---|---|---|---|
Device IDdevice-id | string | — | max 255 chars | yes | Azure IoT device ID, used as MQTT client id |
QoS Levelqos | map | QoS 0 | QoS 0, QoS 1 | no | MQTT QoS level for message delivery |
Upload Formatformat | map | values-format | values-format, tags-format | yes | JSON format of the data reported. In values-mode, data are split into values and errors sub objects. In tags-mode, tag data are put in a single array. |
Offline Data Cachingoffline-cache | bool | false | — | no | Offline caching switch. Cache MQTT messages when offline, and sync cached messages when back online. |
Cache Memory Size (MB)cache-mem-size | int | — | 1 – 1024 | yes | Max in-memory cache size in megabytes when MQTT connection exception occurs. Should be smaller than cache disk size. Shown when Offline Data Caching = true. |
Cache Disk Size (MB)cache-disk-size | int | — | 1 – 10240 | yes | Max in-disk cache size in megabytes when MQTT connection exception occurs. Should be larger than cache memory size. If nonzero, cache memory size should also be nonzero. Shown when Offline Data Caching = true. |
Cache Sync Interval (MS)cache-sync-interval | int | 100 | 10 – 120000 | yes | Interval in milliseconds at which cached messages are synced to the broker once the connection is restored. Shown when Offline Data Caching = true. |
IoT Hub Hostnamehost | string | — | max 255 chars | yes | Azure IoT Hub full CName |
Authenticationauth | map | Shared Access Signature | Shared Access Signature, X.509 Certificates | yes | Device authentication method, uses SAS or X.509 certificates |
SAS Tokensas | string | — | max 255 chars | yes | Azure IoT Hub shared access signature (SAS) token Shown when Authentication = Shared Access Signature. |
CAca | file | — | max 81960 chars | yes | CA certificate which signs the server certificate |
Device Certificatecert | file | — | max 81960 chars | yes | Client x509 certificate when using two way authentication Shown when Authentication = X.509 Certificates. |
Device Private Keykey | file | — | max 81960 chars | yes | Client private key when using two way authentication Shown when Authentication = X.509 Certificates. |