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

Receive messages from Azure Servicebus / IotHub

I want to check the azure servicebus/iothub constantly for messages. However, when I do it like this I get the following error "An exception of type 'Amqp.AmqpException' occurred in mscorlib.dll but was not handled in user code Additional…
discy
  • 410
  • 3
  • 13
1
vote
0 answers

How do I associate a certificate with an IoT Edge SDK connection on iOS & Android

I am trying to connect to an IoT Edge device from iOS and Android apps. It looks like the SDK relies on using the local device certificate store to enable the handshake/authentication for connecting to MQTT. I have this working on Windows using a…
1
vote
2 answers

What is the good design to handle messages in a same process and send it to cloud without a data loss?

I am working on designing a solution for sending data from windows based devices to the cloud. Here is the high level Device Software: The device software is currently written in C, C++ or C# languages based on the device model and legacy…
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
1
vote
1 answer

Why do I keep getting module 'azure' not found error? [Azure IoT Edge Specific]

I have installed the pypi package azure-iot-device using pip as required to run a python file with the Azure IoT edge SDK. Doesn't work. I had even tried installing the azure package which I later realised was actually deprecated in 2020. I still…
1
vote
2 answers

Directly connect to Azure IoT Edge via MQTT as transparent gateway to Azure IoT Central

I am trying to setup Azure IoT Edge as transparent gateway to which I want to connect directly via MQTT (without any IoT SDKs). ###---Short Version---### I want to connect directly to IoT Edge via MQTT like this to IoT Hub. What is the host,…
1
vote
0 answers

Azure IoT device loosing connection to transparent edge gateway device

I have an issue with a IoT device looses the connection to a transparent Azure IoT Edge gateway. I don't know where to start searching, therefore I'm a bit lost here. IoT Device I used the sample telemetry application (Python) and customized it to…
1
vote
2 answers

Send event from Azure Blog Storage to Azure IoT Hub

I have a NodeJS app that can successfully send data to the Azure IoT Hub, which in turn sends the data to the Azure Blob Storage. That all works fine. I can also manually send a message with the Message to device tool of the Azure Devices portal and…
Thomas Dittmar
  • 1,764
  • 1
  • 23
  • 42
1
vote
1 answer

Unable to insert char* to the Azure Telemetry Payload In Arduino

I'm trying to add char* variable which contains date to the Azure telemetry payload. But error is occurring. az_span temp_span = az_span_create(telemetry_payload, sizeof(telemetry_payload)); temp_span = az_span_copy(temp_span, AZ_SPAN_FROM_STR("{…
1
vote
0 answers

Azure IoT Edge OPC Publisher message encoding

I want to send telemetry data from Azure iot edge device to IoTHub through OPC publisher module. OPC publisher can be configured to encode the message either Json ("--me=Json") or Uadp ("--me=Uadp") before sending. OPC Publisher…
1
vote
1 answer

How to set tags in device twin, while registration of device hartcoded from the azure-iot-sdk-c

I am working with the azure-iot-c-sdk and I have registered my device to IoT Hub with the dps using x509 certificates. Now I want some changes to the generated device twin during the registration process. I have the ability to set device twin…
FS-TK
  • 11
  • 1
1
vote
1 answer

IoTEdge Module Direct Methods Over Debugging/Simulator - Is it Possible?

I'm developing a multi module scenario using IoTEdge and I need to test Direct Methods Communication using the development environment (Debugging/Simulator). I've tested the following scenario: Scenario: Device1 Module1 - Subscribes…
1
vote
1 answer

Using Azure IoT - telemetry from a Windows desktop application

I work for a company that manufactures large scientific instruments, with a single instrument having 100+ components: pumps, temperature sensors, valves, switches and so on. I write the WPF desktop software that customers use to control their…
Andrew Stephens
  • 9,413
  • 6
  • 76
  • 152
1
vote
0 answers

After upgrading azure-iot-sdk-c from LTS_01_2021_Ref01 to LTS_07_2021_Ref01 certificate verify is flailing

I have upgraded my azure-iot-sdk-c from LTS_01_2021_Ref01 to LTS_07_2021_Ref01. And I am observing few issues with certificate verification. I have build the sdk with below options -Dbuild_service_client=OFF \ …
1
vote
2 answers

How to set Microsoft.Azure.Devices.Client.DeviceClient KeepAliveInSeconds to a higher number than 30

I am investigating using MQTT (or AMQP) over a satellite connection. I am using MQTT over HTTPS towards an IoT Hub in Azure. Data is very expensive on satellite and I am trying to minimize the "idle" consumption of this connection. I can do this by…
nivs1978
  • 1,126
  • 14
  • 20
1
vote
1 answer

Generate production x509 certificate

Trying to implement TPM provisioning for edge devices through nodeJS. https://learn.microsoft.com/en-us/azure/iot-dps/quick-create-simulated-device-x509-node As mentioned able to generate a self-signed certificate for testing purposes. Please help…