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

Azure SDK UnauthorizedException: Put token failed. status-code: 401, status description: Unauthorized: When KeyName is empty the resource URI must

Using C#, the Windows Form Template from Visual Studio and the Microsoft Azure Client SDK I'm trying to send a message to an IOT Hub. I tested connection String with a Virtual Pi and it works there, I can see the connection and incoming messages in…
chris
  • 181
  • 2
  • 18
1
vote
2 answers

How to receive a device update via azure-iot-sdk-c

I'm currently developing an update strategy for IoT devices running embedded Linux. With Azure Device Update for IoT Hub. I have read a lot of MS documentation regarding this topic. But I am missing the part of how to connect all services together,…
1
vote
1 answer

How many messages an edge module can send to edgeHub?

I am building one use case, where I need to simulate a lot of data from each custom module, like 500 messages/min, will there be any issues? will edgeHub handle, 500 messages/custom modules from ten such custom modules at the same time?
ArnabGhosh
  • 35
  • 6
1
vote
1 answer

AzureIoTHub: How to send telemetry data in JSON format?

I used the example repo of Azure für sending telemetry data: https://github.com/Azure/azure-iot-arduino/tree/master/examples/esp8266/iothub_ll_telemetry_sample I did not modify any code. This is the important part: const char* telemetry_msg =…
mleister
  • 1,697
  • 2
  • 20
  • 46
1
vote
0 answers

Azure Edge solution on python can't create multiple device twins?

The objective of the project is to have a mesh network connected to the edge device (Raspberry PI) and this edge connected to the IoT Hub and azure portal. Because our Mesh module is already in python, we wanted to try to be coherent if possible and…
João Gomes
  • 81
  • 10
1
vote
0 answers

Azure IOT Device client method CompleteFileUploadAsync giving error 403 as forbidden when IsSuccess = true, works for IsSuccess = false

I have enabled private endpoint for iot hub and azure storage account and restricted the public traffic, when i am uploading a file it gets uploaded successfully but when calling CompleteFileUploadAsync method of device client i am getting error 403…
1
vote
1 answer

Cloud to Device (C2D) messages from Azure IoT Hub to ESP8266 - working via Azure CLI but not through HTTP request

C2D messaging in Azure Web CLI (bash) az iot device c2d-message send -d MY-DEVICE-NAME -n MY-IOT-HUB-NAME --data "It works" This works - a C2D message is sent to the device. The message is printed out over serial, and is displayed on a TFT. When I…
1
vote
1 answer

Azure Get IoTHub Connection String from connected device/DPS Service

I´m using Azure Device Provisioning Service (DPS) to automatically register and provision devices to Azure IoT Hub. I would like to get the device twin of a particular device. I can manage to get the device twin by using de DeviceClient class: var…
kevin
  • 988
  • 12
  • 23
1
vote
1 answer

Azure IoT Edge Support for JSON Arrays in Device Twin

Microsoft seems to have recently added support for JSON Array fields in the Device Twin. I can successfully set an array as a desired property and can receive and parse it on my device. However, when I try to generate a reported property in array…
ryayl
  • 41
  • 1
1
vote
1 answer

What is the difference between Microsoft.Azure.Devices.Device and Microsoft.Azure.Devices.Shared.Twin?

Assuming I want to load Device information using Microsoft.Azure.Devices package/SDK, does is make any difference which I call: RegistryManager regManager = RegistryManager.CreateFromConnectionString(connectionString); Device device = await…
OverflowStack
  • 825
  • 1
  • 14
  • 30
1
vote
1 answer

Error: opening Service Client using correct connection string

I am trying to run Service Client Sample example https://github.com/Azure/azure-iot-sdk-java/blob/master/service/iot-service-samples/service-client-sample/src/main/java/samples/com/microsoft/azure/sdk/iot/ServiceClientSample.java with correct…
1
vote
1 answer

How to update Azure DeviceTwin NESTED desired properties? (Java)

I am using the com.microsoft.azure.sdk.iot:iot-service-client:1.16.0 library (Java) for working with Azure IoT Devices. I am trying to "update" some properties, however they nested and I am having trouble updating them. My DeviceTwin Json looks like…
ennth
  • 1,698
  • 5
  • 31
  • 63
1
vote
1 answer

How to handle multiple device clients provisioned through DPS(Group Symmetric key) to IoT Central from a gateway device

We have a gateway device(not running IoT edge runtime). We want to connect multiple BLE or Zigbee sensors to the gateway and provision/register them through our gateway device to IoT Central as different devices using group symmetric key…
1
vote
1 answer

Having a problem with installing the Azure IoT SDK for C

I am following the MS docs quickstart on creating an IoT Plug and Play device for Windows i.e Quickstart: Use a device capability model to create an IoT Plug and Play Preview device (Windows) and I'm having issues preparing the development…
1
vote
2 answers

How to connect X.509 authenticated downstream device using azure python sdk version 2 to azure edge enabled gateway

With the now deprecated azure-iot-python-skd version 1 it was possible to connect a downstream device using X.509 authentication to a transparent iotedge enabled gateway by setting the connection string like this: HostName=
meshell
  • 11
  • 1