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
1
vote
1 answer

How to send custom error message from azure function to iot device via azure device provisioning service?

I am using custom allocation policy in device provisioning service (DPS) to register my iot device to iot hub, in which I am triggering azure function for the same. Now if my function logic fails, I have to send the custom error message to a…
1
vote
0 answers

Device twin Reported properties are not updating properly with python sdk

I had divided my software update process in various stages like (download, unzip, pre-install, install, post-install). I am setting reported properties at every stage accordingly. But these properties are not updating during installation process…
cgoma
  • 47
  • 2
  • 13
1
vote
1 answer

How read line separated json file from azure data lake and query using usql

I have ioT data in azure datalake structure as {date}/{month}/{day}/abbs. Json Each file has multiple records separated by new line .. How to read this data using usql and load into table and query. When I load it in usql table using ////.json…
Amjath Khan
  • 185
  • 11
1
vote
3 answers

Connect React Native App to Azure IoT Service

I am fairly new to React Native, but I created a simple app that has a button and a text that changes when the button is clicked. However, I want to connect to the IoT hub and receive information from the hub. I am having issues currently with the…
Ruby
  • 413
  • 1
  • 4
  • 16
1
vote
1 answer

Creating azure IoT device at IoT hub using azure python/java sdk

I am trying to create an IoT device at IOT HUB using python based azure-iot sdk. At present, I can create an IOT device(using AZ CLI or through dashboard) and can link it with my soft client(using connection string). But would like to implement the…
1
vote
1 answer

Retry after unrecoverable error in Azure IoT C SDK

According to this documentation, the SDK does not reattempt a re-connection if it detects an unrecoverable error. However, in the associated documentation for the C SDK there is no mention of a recoverable or an unrecoverable error (or at least I…
koalo
  • 2,113
  • 20
  • 31
1
vote
1 answer

What are the differences between system properties and application properties in azure-iot-hub message?

This link contains Create and read IoT Hub messages of azure. I'm confused about app property and message property. What's the difference between them?
Chinna
  • 23
  • 10
1
vote
1 answer

Search an enrollment device on Device Provisioning Service via initialTwin tag

I want to search a specific enrollment device on DPS (based on its 'OL' tag). For that, I use the next piece of code: QuerySpecification querySpecification = new QuerySpecificationBuilder("*",QuerySpecificationBuilder.FromType.ENROLLMENTS) …
1
vote
1 answer

Microsoft Azure IoT hub (java) notifies a "Lost connection to the server. Reconnecting 0 time." after sending a message

I use the IoT Hub Java library to send messages between my devices and Microsoft Azure. To connect I call client = new DeviceClient(connString, protocol); client.open(); And then, to send a message I call client.sendEventAsync(message, callback,…
1
vote
1 answer

Read Azure IoT Hub messages from custom endpoints

By following the instruction with below code: const { EventHubClient } = require('@azure/event-hubs'); async function main() { const client = await EventHubClient.createFromIotHubConnectionString(process.env["IOTHUB_CONNECTION_STRING"]); const…
Jun Han
  • 13,821
  • 7
  • 26
  • 31
1
vote
1 answer

Software update on Azure IoT

I am currently working on software update on iot device using Microsoft azure. I am following the below links for the same…
cgoma
  • 47
  • 2
  • 13
1
vote
0 answers

Samples not linked against libcurl

When cross-compiling the Azure IoT SDK for C with CMake, it also tries to build some samples. But it doesn't link these samples against libcurl, i.e. -lcurl is missing from the corresponding command line. Thus I am getting a lot of undefined…
Jan Schatz
  • 334
  • 2
  • 12
1
vote
2 answers

Connect the azure IoT hub with a GSM modem using Azure IoT C SDK

I want to connect an embedded system to the Azure IoT hub. The system consists of a STM32 microcontroller, some sensors and a modem with the following features: IP packet transfer protocol TLS support SHA-256 support control via hayes command set…
oliver-fhg
  • 61
  • 7
1
vote
0 answers

Iothub module authentication error in Azure

I am running a fairly basic Azure IoT C# module. Initially, it all worked fine. However, when I set up X.509 certificates for the edge hub, I've been getting module authentication errors as follows. There seems to be some dependence on using…
Badri V
  • 141
  • 1
  • 4
1
vote
1 answer

Azure IoT Upload File to Blob

Does the upload file to blob feature of the azure-iot-sdk-c currently implement any integrity checks such as an md5 hash of the blob contents? I am aware of the c-sharp sdk doing this, but I need confirmation on the c sdk.