Questions tagged [azure-iot-sdk]

SDKs for a variety of languages and platforms that help connect devices to Microsoft Azure IoT services. SDKs cover C, Node.js, Java, .NET and Python.

SDKs for a variety of languages and platforms that help connect devices to Microsoft Azure IoT services. SDKs cover C, Node.js, Java, .NET and Python. Can learn more at https://github.com/Azure/azure-iot-sdks

371 questions
2
votes
0 answers

How to get C2D messages that are put in Dead Letter Queue (DLQ)?

I'm using Azure IOT Hub and we will start sending C2D messages to some devices. According to the documentation provided by Microsoft (available here: The cloud-to-device message life cycle) a device can reject a message, which means that message…
2
votes
1 answer

Azure IoT Hub device registration via POSTMAN results in Unauthorized

I want to create a sas token for registration of device in Azure IoT hub,using postman.The sas token will be created with pre-requested script. var resourceUri = "scopeId/registrations/deviceId" // The resource uri var deviceId =…
Liverpool
  • 265
  • 7
  • 21
2
votes
1 answer

How to get (feedback)acknowledgments for messages sent to a device from IoT Hub in python?

I am able to send messages and reported-properties from iot hub to a simulated device through azure-iot-sdk-python. Now i wanna get acknowledgments (success,expired,rejected,purjed,DeliveryCountexceeded) for messages sent to the device/module from…
giri rajh
  • 45
  • 4
2
votes
1 answer

Programmatically declare a parent-child relationship between the devices in IoT Hub using Node SDK

Using the Node SDK, I have programmatically created devices in IoT Hub. I wish to know if the Node SDK provides me the capability to set a device as a child of another device. Looking at the documentation, I didn't find a way (using SDK). Is there…
2
votes
1 answer

Error: "No credentials are available in the security package" with DPS SDK

I am attempting to use the IoT SDK to communicate to DPS and then IoT Hub. When I load a valid certificate PEM file, it looks correct in debug window shown below: After loading the cert, I am unable to use it in the IoT SDK, getting the error…
Kevin Saye
  • 299
  • 1
  • 8
2
votes
1 answer

How to send a json object instead of a string with Azure Client SDK

I'm struggling with creating a message from a device to the IotHub in the correct format. I'm using the Azure Client SDK (Microsoft.Azure.Devices.Client) For better understanding lets start with a small example, we have the following string: var…
chris
  • 181
  • 2
  • 18
2
votes
1 answer

Unauthorized exception when using Azure IoT Hub Device Provisioning Service (DPS)

I'm trying to migrate an existing solution with Azure IoT Hub to use Azure IoT Hub Device Provisioning Service (DPS). The devices authenticate themself using a X.509 Self-Signed certificate. For testing purposes I can generate a certificate…
2
votes
1 answer

Python async function returning coroutine object

I am running a python program to listen to azure iot hub. The function is returning me a coroutine object instead of a json. I saw that if we use async function and call it as a normal function this occurs, but i created a loop to get event and then…
2
votes
1 answer

Azure IoT - resetting and clearing device twin

I am using the Azure IoT SDK for C. I need my device to be able to completely clear the reported properties on the device twin from time to time. In my device twin I have a small hierarchy in the reported properties which contains a list of items.…
Engineer999
  • 3,683
  • 6
  • 33
  • 71
2
votes
2 answers

Azure IoT client not getting connected to IoT Hub

Im facing these errors in my Invoke Module. I have two modules which runs python script. One module to get invoked cloud message and other to receive the invoked cloud message through the input. Everything was working fine and suddenly Im…
Nishad Nazar
  • 371
  • 2
  • 3
  • 16
2
votes
2 answers

DeviceClient SetMethodDefaultHandlerAsync not invoked timely

Describe the bug DeviceClient SetMethodDefaultHandlerAsync handler is not triggered on internet disconnection instantly. It triggers after 15 to 20 minutes. Below are the logs IoT Hub connection status Changed Status: Connected Reason: Connection_Ok…
2
votes
1 answer

Question Regarding X.509 Certificates and MXChip IoT DevKit

I am following the Device Provisioning Example for the MXChip IoT DevKit at Azure MXChip IoT DevKit DPS and have a question regarding X.509 certificates. When I follow the sample everything works correctly. However, when I change the code on the…
2
votes
0 answers

DeviceClient.SetConnectionStatusChangesHandler is NOT invoked after device is 1+ hour offline

The code below works if the device is online and offline wtihin minutes. However, when it is offline more than 1 hour, and is switched to online, the SetConnectionStatusChangesHandler's handler is not invoked. public class IotHubService { …
Pingpong
  • 7,681
  • 21
  • 83
  • 209
2
votes
1 answer

azure iot hub how to subscribe for device twin changes as a server

For my IoT Hub backend solution, how can I register for notifications when A) a reported property from a client is changed and B) a desired property from "myself" has finally be updated (because the my updates are synchronous and I don't seem to be…
Jon Th
  • 347
  • 2
  • 13
2
votes
1 answer

Azure: How to connect to IOT-Central directly, via API or Webhook?

I would like to to know if there is a way to directly connect to IOT-Centrals Rest-API, I would like to create a web-application from the telemetry data which are displayed there. As far as my knowledge gets, I believe i need to get that Json string…
Cat
  • 73
  • 6
1
2
3
24 25