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

How to invoke device method in ios using azure iot sdk

I am trying to call a method associated with the device using connection string. I tried with the samples provided with other languages I am able to call the method in the device. eg: "setState" or "getState" of the lamp. But I am not able to…
joy son
  • 555
  • 6
  • 15
2
votes
1 answer

Azure IoT device update to report twin properties fails if there is already different record there

I have an IoT board that was hosting an application with a set of properties that it reported. I then loaded a new application onto that board. Now the twin properties update fails with a 400 error. Here are the existing properties from the…
farhadf
  • 1,918
  • 3
  • 19
  • 27
2
votes
1 answer

setting deviceID when provisioning with custom HSM

I am trying to prototype a X509 certificates based group enrollment, and not for only one device (as dice_device_enrollment by default would provide), but for several, and, from what I learned, I will need to implement my own custom HSM library.…
Roman
  • 238
  • 1
  • 14
2
votes
3 answers

How to send custom payload while provisioning device in Azure IoT?

I am trying to provision my device into Azure IoT using Azure IoT Device Provisioning Service in which I am using the custom allocation policy, under manage enrollment group. When the device registers to DPS (device provisioning service), it…
2
votes
2 answers

Missing bcrypt.dll when using azure-iot-sdk-csharp -> SecurityProviderTpmHsm on linux-arm

I want to use the azure-iot-sdk-csharp to provision a linux based device on the azure iot dps using TPM as authentification mechanism. I added a TPM Module to a raspberry board and configured the kernel / deviceTree. The TPM chip is detected and…
ToBu
  • 95
  • 1
  • 7
2
votes
1 answer

How can I send IoT hub messages to MQTT broker?

I am sending some messages from a Azure sphere device to IoT hub, now I want to send/route these messages to a MQTT broker from where I can get this messages and display it in third party software. Please guide me I am new to this topic, any leads…
Yatin Gaikwad
  • 1,140
  • 1
  • 13
  • 23
2
votes
1 answer

Multiple MQTT connections on a single IOT device

Using the azure-iot-sdk for python I have a program that opens a connection to the IoT Hub and continually listens for direct methods, using the MQTT protocol. This is working as expected. I have a second python program that I invoke from cron…
TheCat
  • 31
  • 3
2
votes
2 answers

How to access IoT Digital Twin Service

Azure has recently launched a new service called Digital twins. Refer to https://azure.microsoft.com/en-us/services/digital-twins/. But in the link I can only get to the "Learn more" page which doesn't have much information. There is nowhere to try …
2
votes
1 answer

Create device with extra fields tags of device twin in Azure IoT Hub

Is it possible to define a property in tags of deviceTwin while creating a device in Azure IoT Hub? or it is needed to create device first, then get and update the deviceTwin. It seems 'Registry.create' (from node sdk) does not accept such an…
plankton
  • 59
  • 7
2
votes
3 answers

Azure Provisioning service example not working for node

I followed the node.js tutorial to register device throuh Azure DPS(device provisioning service) @ https://learn.microsoft.com/en-us/azure/iot-dps/quick-create-simulated-device-x509-node . For individual device enrollment it succedded, but when I…
stef
  • 41
  • 5
2
votes
2 answers

Azure IOT Hub Device "Suspension"

Given an Azure IOT Hub with many thousands of connected devices. Given that some subset of the devices have some combination of software and hardware issues such that they are flooding IOT Hub with (bad) traffic. How do we "suspend" or otherwise…
Howard Hoffman
  • 897
  • 1
  • 9
  • 22
2
votes
3 answers

An unhandled exception of type 'System.FormatException' occurred in Microsoft.Azure.Devices.dll

I'm referring this tutorial to create a device identity. However, getting an exception as below: Here is my config file: Edit: What is this Instrumentation key and value in App.Config? I just copied from the sample code. However, from where can I…
AskMe
  • 2,495
  • 8
  • 49
  • 102
2
votes
2 answers

Arduino Ethernet Shield connect to Azure IoT Hub

I am new using Arduino. I have Arduino One using a Ethernet shield and I need to send some information from the Arduino to the my Azure IoT Hub all the examples are using Wi-Fi shield. I was reading the docs from Azure-IoT-Arduino SDK for Arduino…
RicardoPons
  • 1,323
  • 9
  • 14
2
votes
1 answer

NodeJS - MS Azure IoT

I was doing a bit of research on Azure IoT Hub and was pleasantly surprised to see that it doesn't have the SDK for Objective C. How do you propose we get around this? One option could be : 1) Create our own Web Server using NodeJS. 2) Use Azure…
iOSer
  • 2,241
  • 1
  • 18
  • 26
2
votes
0 answers

Which TransientFaultDetectionStrategy for communication with Azure IoTHub / cloud-to-device communication?

We use the Transient Fault Handling Application Block to handle transient faults during Azure cloud-to-device communication. Therefore we define our own detection strategy which implements ITransientErrorDetectionStrategy, but don't know which…
RahelBlch
  • 41
  • 5
1 2
3
24 25