Skip to main content

Azure IoT Hub uplink

Uplink Production

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​

ParameterTypeDefaultRange / optionsRequiredDescription
Device ID
device-id
string—max 255 charsyesAzure IoT device ID, used as MQTT client id
QoS Level
qos
mapQoS 0QoS 0, QoS 1noMQTT QoS level for message delivery
Upload Format
format
mapvalues-formatvalues-format, tags-formatyesJSON 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 Caching
offline-cache
boolfalse—noOffline caching switch. Cache MQTT messages when offline, and sync cached messages when back online.
Cache Memory Size (MB)
cache-mem-size
int—1 – 1024yesMax 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 – 10240yesMax 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
int10010 – 120000yesInterval in milliseconds at which cached messages are synced to the broker once the connection is restored. Shown when Offline Data Caching = true.
IoT Hub Hostname
host
string—max 255 charsyesAzure IoT Hub full CName
Authentication
auth
mapShared Access SignatureShared Access Signature, X.509 CertificatesyesDevice authentication method, uses SAS or X.509 certificates
SAS Token
sas
string—max 255 charsyesAzure IoT Hub shared access signature (SAS) token Shown when Authentication = Shared Access Signature.
CA
ca
file—max 81960 charsyesCA certificate which signs the server certificate
Device Certificate
cert
file—max 81960 charsyesClient x509 certificate when using two way authentication Shown when Authentication = X.509 Certificates.
Device Private Key
key
file—max 81960 charsyesClient private key when using two way authentication Shown when Authentication = X.509 Certificates.