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
0
votes
2 answers

azure iothub device stops sending messages

I've recently started working with the Azure-Iot-SDK and wonder how to investigate this behaviour. My application is ok with sending messages to the IoT hub for some time, but suddenly just stops sending. Without an error or anything else that helps…
gidJac
  • 3
  • 2
0
votes
1 answer

Azure device twin client error management

I am not exactly starting out with device twin and azure but closer to newbie than expert. I cannot figure out how to correctly manage connection problems with the device twins in azure. I have a long running node application that opens a client. …
mg360
  • 103
  • 2
  • 10
0
votes
1 answer

getting error : Authorization required, resend request using supplied key

Instead of SDK am directly calling azure iot provisioning rest api to enroll device and then register it. Enroll call to rest api works fine but register call fails with error ""Authorization required, resend request using supplied key"" gives…
krishnakumar
  • 617
  • 1
  • 6
  • 22
0
votes
2 answers

Device Twin not fully returned with GetTwinAsync()

I am using the Azure IoT Device Client SDK for .NET Core (1.17.0-preview-001 but also tried 1.7.0-stable). When calling deviceClient.GetTwinAsync()all fields are NULLexcept for the Properties(Desired as well as Reported are there): At least things…
silent
  • 14,494
  • 4
  • 46
  • 86
0
votes
2 answers

Azure IoT device provisioning

I'm investigating using Azure IoT hub for communication between software clients and a backend. The software clients should act as devices in IoT hub parlance. Is it possible to provision the software clients as devices with IoT Hub device…
RasmusW
  • 3,355
  • 3
  • 28
  • 46
0
votes
1 answer

Azure IoT Hub Device Twin Change Notification Issues

I'm trying to receive notifications in the cloud back-end when Device twin properties change. To do this I have set up a route as seen in the picture link below https://i.stack.imgur.com/sKNOG.jpg I have also created an Azure Function that triggers…
0
votes
1 answer

connect a gps tracker to azure iot Hub

I bought a gps tracker tk102-2 and I wanted to connect it to azure iot hub. The tutorials I found in official documention speak about arduino and raspberry devices. My devixe can send data with gprs network. Is it possible to connect these devices…
Aggounix
  • 251
  • 5
  • 15
0
votes
1 answer

How do I automate adding a custom Iot Hub Endpoint (and route to it)?

In order to receive Azure IotHub Device Twin change notifications, it appears that it's necessary to create a custom endpoint and create a route to send notifications to that endpoint. This seems straightforward enough on the Azure Portal, but as…
cacsar
  • 2,098
  • 1
  • 14
  • 27
0
votes
2 answers

How to get deviceid of message in Azure function that is triggered by IOThub message

I have an Azure function that is triggered by IOThub. So in the Azure function, I have public static async Task Run(EventData myIoTHubMessage1, TraceWriter log) How do I get the device id from the Event Data. I tried…
Aparna
  • 835
  • 2
  • 23
  • 47
0
votes
1 answer

How to read from AzureIOT only messages from one device

I have an Azure IOT solution where data from 2 devices go to the same IOT hub. From my computer I need to read the messages only from one of the devices. I implemented the ReadDeviceToCloudMessages.js in…
Aparna
  • 835
  • 2
  • 23
  • 47
0
votes
1 answer

Can I use Microsoft.Azure.Devices.RegistryManager to add/register an IoT Edge device?

Trying to search through Microsoft docs but I can't seem to find anything to suggest I can use RegistryManager.AddDeviceAsync() to add an IoT Edge (Preview) device to IoT Hub. This MS tutorial says you can pass the --edge-enabled option to the CLI…
Simon
  • 33
  • 5
0
votes
0 answers

OpenSSL library path not found in Aure IOT hub installation

I am installing the Aure IOT hub on a beagle bone board. During the installation I see an error of Cmake mentioning that Cmake is not able to find the OpenSSL library and directory path. I followed couple of posts on Stack Overflow, they mentioned…
rohit
  • 21
  • 7
0
votes
2 answers

Documentation for Python Azure IoTHub SDK

Is there any real documentation for the Python Azure IoTHub SDK? I have found a few code samples but nothing comprehensive. It's also hard to correlate with the documentation for other language SDK's as they all seem slightly different. Even the…
emft
  • 376
  • 1
  • 2
  • 11
0
votes
2 answers

Azure IoT Hubs: offline storage of messages

Is there any functionality within the Azure IoT device SDKs to ensure that a message is sent to the hub from a device in the event of a loss of connectivity and subsequent termination and restart (after connectivity is restored) of the application…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
0
votes
1 answer

Java EventHubClient doesn't receive events when listening to more than 2 partitions

I'm trying the java getting started sample on https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-java-java-getstarted on an iot hub with 4 partitions. I adapted the part about receiving events by creating 1 client instance and calling…
Jan Bols
  • 457
  • 4
  • 11