azure-iot-hub

Device Twin: how to read/write properties in c#

允我心安 提交于 2021-01-07 06:06:32
问题 I have registered the devices in IoT and the client application (device) can read/update reported twin properties. The properties are the wollowing : "EbbyVersion": { "Major": 2, "Minor": 1, "Revision": 0 }, "Telemetry": { "CachingInterval": 60, "SendingInterval": 480, "UploadTimeout": 10 }, "Power": { "MaximumAvailable": 3500, "Thresholds": { "Low": 2500, "Medium": 3000, "High": 3500 } }, "Lighting": { "R": 32, "G": 64, "B": 128, "W": 255 }, I write the following code to connect to IoT

Device Twin: how to read/write properties in c#

青春壹個敷衍的年華 提交于 2021-01-07 06:06:09
问题 I have registered the devices in IoT and the client application (device) can read/update reported twin properties. The properties are the wollowing : "EbbyVersion": { "Major": 2, "Minor": 1, "Revision": 0 }, "Telemetry": { "CachingInterval": 60, "SendingInterval": 480, "UploadTimeout": 10 }, "Power": { "MaximumAvailable": 3500, "Thresholds": { "Low": 2500, "Medium": 3000, "High": 3500 } }, "Lighting": { "R": 32, "G": 64, "B": 128, "W": 255 }, I write the following code to connect to IoT

One of the IoT Edge Module is in Backoff state Raspberry Pi 4 with Raspbian OS

狂风中的少年 提交于 2021-01-07 01:34:03
问题 I have developed a module and built the image for arm64v8 architecture as my Edge device is running in Raspberry Pi 4. I got the file deployment.arm64v8.json in the config folder correctly. But when I right-click on the device in Visual Studio Code and select Create Deployment for Single Device, the modules are getting added, but one of the modules is showing Backoff state. What could be the problem here, and was strictly following this doc. I also tried restarting the services. Device

One of the IoT Edge Module is in Backoff state Raspberry Pi 4 with Raspbian OS

ぐ巨炮叔叔 提交于 2021-01-07 01:32:52
问题 I have developed a module and built the image for arm64v8 architecture as my Edge device is running in Raspberry Pi 4. I got the file deployment.arm64v8.json in the config folder correctly. But when I right-click on the device in Visual Studio Code and select Create Deployment for Single Device, the modules are getting added, but one of the modules is showing Backoff state. What could be the problem here, and was strictly following this doc. I also tried restarting the services. Device

Azure IoT Hub: HTTP Device-to-Cloud Messages without SDK?

给你一囗甜甜゛ 提交于 2021-01-01 04:59:04
问题 I'm using a 32-bit microcontroller (program code written in C) with very limited flash space that is communicating with a cellular module. I have an Azure account setup with an IoT Hub and I would like to send some device-to-cloud messages to my IoT Hub. I have tested and confirmed both HTTP and HTTPS communication to other servers. However, I can't find anywhere that specifies what the required HTTP headers are for sending a device-to-cloud message. Can anyone provide a description of the