npm install -g node-red-contrib-azure-iothub-service
Receive messages sent from devices via the builtin Event Hub.
Send cloud2device messages to your IoT Hub devices.
Manage IoT Hub Devices.
method: "device"
method: "device", deviceId: str
method: "device.create", deviceId: str
payload (optional):
{
status: 'enabled',
authentication: {
x509Thumbprint: { primaryThumbprint: XXX, secondaryThumbprint: XXX }
}
}
method: "twin", deviceId: str
method: "twin.update", deviceId: str
payload:
{
tags: { city: "Redmond" },
properties: {
desired: { telemetryInterval: 1000 },
}
}
method: "device.delete", deviceId: str
List configurations:
method: "config"
method: "config.create"
payload:
{
id: 'chiller4000x',
content: {
deviceContent: {
'properties.desired.chiller-water': {
temperature: 66,
pressure: 28
}
}
},
metrics: {
queries: {
waterSettingsPending: "SELECT deviceId FROM devices WHERE properties.reported.chillerWaterSettings.status='pending'"
}
},
targetCondition: "properties.reported.chillerProperties.model='4000x'",
priority: 20
}
method: "config", configId: str
method: "config.update", configId: str
payload:
{
content: {
deviceContent: {
'properties.desired.chiller-water': {
pressure: 29
}
}
}
}
method: "config.delete", configId: str
- checkpoint store
- validate NodeRedCheckpointStore
- local file checkpoint store (could use contextstore = localfilesystem)
- Azure Blob backed store
- generate certs
- device methods:
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/dmpatterns_reboot_service.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/dmpatterns_fwupdate_service.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/invoke_command.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/invoke_component_command.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/module_method.js
- file notification
- jobs
- bulk blob import export
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/registry_bulk_import_sample.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/registry_bulk_export_sample.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/registry_bulk_sample.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/registry_import_managed_identity_sample.js
- https://github.com/Azure/azure-iot-hub-node/blob/main/samples/registry_export_managed_identity_sample.js
- device modules
- token credentials
- digital twin client (already accomplished with registry afaict)
- edge deployment