Newest 'azure-iot-sdk' Questions - Stack Overflow

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. Can learn more at https://github.com/Azure/azure-iot-sdks

0
votes
0answers
24 views

Using Azure IOT device Provisioning (ProvisioningX509Sample) on Android

I need to do group provisioning/enrollment in my Android application. There is no gradle dependency available for azure-iot-provisioning. How do I implement provisioning in android? EDIT 1: I have ...
0
votes
1answer
74 views

What is the difference between Azure IoT Hub and Azure IoT Central?

I used Azure IoT Hub earlier and now I found a new topic Azure IoT Central which looks as same as the Azure IoT Hub. I am confused with the difference between these IoT Services, Can anyone explain ...
0
votes
0answers
27 views

AICS Test Report for Android device

I am looking for steps to generate AICS Test report for my android device. I was able to cross compile the sdk code for using Android ndk. Is there any application or steps that can help me to ...
0
votes
0answers
46 views

how to cancel running schedule job in IoT Hub?

I am using Azure IoT Hub schedule jobs for controlling the device from backend, I schedule the job for a specific duration and receive at the end of the device and that's how I am controlling my ...
0
votes
1answer
24 views

Azure Sphere MT3620 retry later to send to IoT hub

Trying to find any information regarding storing local information on Azure Sphere MT3620 device if the connection was lost. Some sort of failback storage for later retry? Example Try to send a ...
0
votes
0answers
24 views

Azure IOT SDK: relocation R_X86_64_32S against`_Py_NotImplementedStruct' cannot be used when making shared object

I am trying to build azure iot hub sdks for linux referring this link : Azure-Python-SDK. I am using python 3.5. Azure-sdk-python Github doc says Ubuntu 16:04 + Python 3.5 (or 2.7) + libboost-...
0
votes
1answer
41 views

DeviceTwinClient when invokes getTags() method returns java.lang.IllegalArgumentException

When invokes an iotHub query to get DevicetwinDevice of multiple devices: SqlQuery sqlQuery = SqlQuery.createSqlQuery("*", SqlQuery.FromType.DEVICES, generateWhere(listDeviceIds), null); ...
0
votes
1answer
29 views

Complete Device Bound Notification REST does not work for me

I am calling REST call with PHP-curl to complete the device notification message referred from the official doc. below is my code <?php $curl = curl_init(); curl_setopt_array($curl, array( ...
0
votes
0answers
60 views

Azure IoT Provisioning using TPM under Linux using SecurityProviderTpmHsm failed at ProvisioningDeviceClient.RegisterAsync() with TPM Exception

Description We want to use TPM for provisioning under Linux with .netcore. The call RegisterAsync on the ProvisiongDeviceClient is failing with TpmException: "Error {Binding} was returned for command ...
0
votes
0answers
48 views

How to fix dll error installing Microsoft.Azure.EventHubs on Unity to receive “device to cloud” messages coming from Eventhub-endpoint of IoT Hub?

Let me first describe the all picture : I want to receive sensors data on my Unity app through Azure Cloud, and specially Azure IoT Hub the dedicated service for IoT system. Sensors + raspberry pi => ...
0
votes
1answer
54 views

Why should I restore the keys in Azure Device Provisioning?

I'm using the service Device Provisioning for my Azure IoT solution. I've created a group of registration with Symmetric key attestation. From the guide: By default, the Device Provisioning Service ...
0
votes
1answer
35 views

How do I run End to End tests for the Azure IoT C SDK on a Raspberry Pi?

I'm trying to compile and test the azure-iot-sdk-c on a raspberry pi. How do I compile it on the raspberry pi and then run the E2E tests provided in the SDK?
0
votes
0answers
59 views

Connection To The Azure Portal Timed Out With Java Custom Module

I am trying out writing custom java module for azure IoT Edge runtime. I am following Tutorial: Develop a Java IoT Edge module and deploy to your simulated device I have 64 bit Ubuntu 18.04 machine ...
0
votes
1answer
97 views

How to install Azure IoT Hub SDK (C#) on Unity3D?

I'm currently developing a dashboard in Unity 3d. I want to connect my Unity app to Azure IoT Hub to receive the data of my sensors: Sensors + Rapsberry Pi => IoT Hub => Unity App Azure provides an ...
1
vote
0answers
48 views

How to Create and EdgeDevice with RegistryManager

I see in the source file service/iothub_service_client_python.py that the class IoTHubRegistryManager has methods to create and update devices and methods. They are largely used in samples and EtE ...
1
vote
1answer
78 views

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 ...
1
vote
1answer
75 views

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 ...
0
votes
0answers
54 views

How to connect to Azure IoT hub using cordova plugin and java script?

Any cordova plugin that connects to azure iot hub and methods to upload files?
0
votes
1answer
24 views

Configure MAX_OPERATION_TIMEOUT

I would like to set the MAX_OPERATION_TIMEOUT, which is set to 4 mins per default in the azure-iot-device/lib/internal_client.js, to another custom value. How can I access that property (e.g. using ...
0
votes
1answer
34 views

Is it possible to schedule a DeviceJob Twin update on a edge device module via Java sdk?

We are trying to schedule a Edge Device module twin update but I'm not sure if that's supported. I am able to query for the twin via tha azure query explorer. We are currently using this to schedule a ...
0
votes
0answers
43 views

Puma Webserver gives “Http malformed” error when called from Azure IoT Dev Kit HttpClient

I'm coding on the MXCHIP and I want to use the HttpClient from the Azure IoT devkit to connect to my own web service. The code "works", since my endpoint is called, but the server (Sinatra with Puma ...
3
votes
1answer
152 views

Explicitly opening connection to IoT Hub from DeviceClient or opening it when a message is sent?

Are there any significant differences between explicitly opening a connection with DeviceClient at application initialisation or leaving it to open the connection itself when a message is sent? What ...
1
vote
2answers
118 views

Provide timestamp in message to IoT central

I want to connect a 'real device' with Azure IoT Central and connect a local source application to it using MQTT. I use this code for the connection and replace. However, I cannot find any ...
0
votes
0answers
51 views

Azure Device Provisioning - Setting Device Twin property

I want to use the device provisioning in Azure for my devices. I'm using the Azure IoT SDK (Java). I would like to create a new device that have some specific properties inside the JSON of the ...
0
votes
1answer
86 views

SSL Handshake with Azure Iot Hub Fails Because of Bad Certificate

I'm trying to port the azure-iot-sdk-c to an stm32f767zi board and have been having a modest amount of success. However now that the program is at the point where it is attempting an SSL handshake ...
0
votes
0answers
56 views

Connected Factory: Topology changes not being reflected in the app, keeps showing default setup

I deployed the connected factory solution from azureiotsolutions.com and have been able to successfully create a gateway device that is reporting data to the connected factory solution in preferred ...
0
votes
0answers
23 views

How to enable ETW logging for azure-iot-sdk-csharp

when we are using DeviceClient class in our UWP app we are hitting some run time exception. We want to look into debug logs for azure-iot-sdk-csharp for better understanding of the issue. Can someone ...
0
votes
1answer
88 views

iotedge: How to requeue message that could not be processed

There are publisher and consumer custom modules that are running on an Edge IoT device. The publisher module keeps producing messages at constant rate no matter consumer module processes it or not. ...
0
votes
0answers
54 views

Azure Device Provisioning Service - query for enrollments

Device Provisioning Service individual enrollments queries don't work. I'm using static allocation policy to assign a device to the specified IoT Hub. My intention is to get enrollments by given IoT ...
0
votes
1answer
65 views

Azure IoT SDK C Set up a macOS (Mac OS X) development environment

Pulled down the MXCHIP basic example for Azure IoT Central as is and get this error. sketch/src/iotc/sdk_plat/iotc.cpp:14:53: fatal error: azure_prov_client/prov_security_factory.h: No such file or ...
0
votes
1answer
73 views

View MPU6050 data on Azure IoT Edge

Objective: View MPU6050 data on Azure IoT Edge I would like to deploy a module to my IoT Edge Device. So in order to deploy MPU6050 sensor as a module, I am stuck up with the following doubts. It ...
0
votes
0answers
113 views

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 ...
0
votes
1answer
129 views

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 ...
1
vote
1answer
200 views

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

Azure IoT SDK C: Error 401 when connecting to Blob Storage

OS and version used: Ubuntu 18.04 SDK version used: Release Dec. 13, 2018 Target: ESP32. Description of the issue: I am trying to connect the ESP32 to my Blob storage. I am getting an HTTP error ...
-1
votes
1answer
99 views

Querying device's telemetry/status/event from Azure IoT Central

I've created an Azure IoT Central solution, where I successfully registered an IoT device. I'm able to save telemetry/status/event data for the device, however I could not find an option to query the ...
0
votes
0answers
72 views

Azure iot sdk c sample: CMakeLists.txt works but make (Autotools) do not

I have the following problem and have no idea how to solve it. I use the iothub_ll_client_x509_sample (azure iot sdk c) in a own project. If i use a CMakeLists.txt to compile the project all works ...
0
votes
1answer
141 views

Get the IOT hub connection string from Azure Device Provision Service

How can I get the IOT hub connection string in device using auto provisioning via Azure Device Provisioning Service. I am doing a group enrollment and that was a success but how can I get the assigned ...
0
votes
0answers
52 views

Enrolling multiple device using Group Enrollment in Azure Device Provisioning Service

There is a lack of documentation when it comes to Group Enrollment in Azure Device Provisioning Service. I was able to create a Enrollment Group and enroll a device to that following these document ...
1
vote
1answer
140 views

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

TypeError: _this._transport.sendEvent is not a function

I have successfully provisioned Device, I am using X509 certs for provisioning and its working fine. Now I want to send device messages to IoT hub, so I have created a separate class DeviceHelper, but ...
0
votes
2answers
170 views

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

Azure Iot Hub SDK for C: which client module to use?

we're making an IoT product with Azure IoT Hub as a backend solution. The main application is written on C and we're going to use the Azure SDK for C. We've studied the SDK and decided that we're ...
0
votes
1answer
88 views

iothub_client/src/iothubtransport_mqtt_common.c Func:InitializeConnection Line:2229 mqtt_client timed out waiting for CONNACK

OS:Linux SDK Version : 2018-12-13 Description of the issue: iothub_ll_telemetry_sample.c when i placed 60000 in the function ThreadAPI_Sleep(60000) works well but Tried with 120000 facing the timeout ...
0
votes
0answers
75 views

Message properties seem to get lost after routing through Azure IoT edgeHub

I'm not sure if this is a bug or I am missing something. I also created an issue on GitHub some days before but with no resonance so far. Here is my scenario: I'm running a Raspberry Pi as a ...
1
vote
1answer
159 views

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 ...
1
vote
1answer
59 views

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 ...
0
votes
1answer
86 views

Azure IoT Hub Java get traffic statistics for a device

I have an Azure Iot Hub setup with a few devices and a Java service connected. I would like to be able to retrieve the traffic statistics (i.e. number of device to cloud messages in a particular time ...
0
votes
1answer
253 views

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 ...
0
votes
0answers
43 views

How to get Azure device twin using mongoose-os js framework?

I've been able to flash my esp8266 module with the demo-js example that can be found on github. After that I ran mos azure-iot-setup and I was able to get my device conncted to Azure. I understand ...