Disconnected from MQTT, error: Optional(Error Domain=MGCDAsyncSocketErrorDomain Code=8 "Error in SSLSetCertificate" UserInfo={NSLocalizedDescription=Error in SSLSetCertificate})
I am trying to connect with MQTT with DigiCert G2 .crt certificate from https://learn.microsoft.com/en-us/azure/security/fundamentals/azure-ca-details?tabs=root-and-subordinate-cas-list#root-certificate-authorities, I am getting this error. Disconnected…
Azure IoT Hub
Azure IoT SDK
How to access IoTHubClient_Auth_Get_SasToken
We currently call IoTHubDeviceClient_LL_AzureStorageInitializeBlobUpload and pass the SAS token to an external process. We are going to upload larger files and do not want to do it in the C/ADU code, thus the external process. if…
Azure IoT SDK
Using the Azure IoT Hub SDK for C in an iOS Swift app
Hello, I have been tasked with creating a library for a client's iOS app which is built in Swift. It just needs to achieve two things, connecting to the IoT Hub with a connection string and receiving cloud to device (C2D) messages. Having read through…
Azure IoT SDK
azure-iot-sdk-c on freertos
I cross compile azure-iot-sdk-c to freertos mt7933, and run iothub_client/samples/iothub_ll_telemetry_sample/iothub_ll_telemetry_sample using mqtt over websocket. But it got ENOTCONN on recv after websocket handshaking success. (using mqtt is ok) When…
Azure IoT SDK

How to see azure iot sdk C log trace prints on a serial monitor using TI CC3235SF?
I am using the TI CC3235SF MCU (custom board) and Azure IoT SDK C (C language) to provision my gateway to Azure DPS and connect it to Azure IoTHub. I learnt that I can set "logtrace" ON which will output the log prints to stdout. I print my…
Azure IoT SDK
Notify uploaded file using System-assigned authentication type
How can I notify the upload file using system-assigned authentication type? I have an IoT hub using system-assigned authentication type and connected to a storage account with a private endpoint. I uploaded the file using python, and the upload was…
Azure Internet of Things
Azure IoT Hub
Azure IoT SDK
Module Authentication with x509 Certificate
Hi, When using the Microsoft.Azure.Devices.Client library it is really easy to set up device connections with x509 certificates through the use of the DeviceAuthenticationWithX509Certificate class. However the library does not provide any logic to…
Azure IoT SDK

Auto URL encode couldn't be used at cloud to device
Data was sent via Azure IoT Hub's Cloud to Device channel, and the gateway is using the lts_01_2023 branch of the Azure IoT SDK C. It printed 'Unprintable value in encoded string'. See below for detailed information. However, the data I actually sent was…
Azure IoT Hub
Azure IoT SDK
Delay of Microsoft.Devices.DeviceConnected (4 to 6 minutes)
Hi I am working on a system where I use an IotHub (S1 tier) that communicates with one IoT device using the setup showed in the table. Furthermore, I use an EventHub that subscribes on Microsoft.Devices.DeviceConnected and …
Azure Digital Twins
Azure IoT Hub
Azure IoT SDK
Setup edge hub input for azure stream analytics using the azure cli or python SDK
I am trying to create an azure stream analytics job using azure cli or python SDK with both input and output as edge hub. I tried using None and GatewayMessageBus as the input types but both of them did not work. It gives an error message: (BadRequest)…
Azure Stream Analytics
Azure IoT SDK

stuck on IoTHubClient_LL_DoWork
The azure-iot-sdk-c version used is 1.3.7 At begin , the program worked well , but suddenly it can not receive the response from the mqtt broker after publishing a message to the cloud, and meanwhile the program hanged in IoTHubClient_LL_DoWork. hope…
Azure IoT SDK
Unknown error in sending http request with Azure Cognitive Services
On my testing machine (Github codespace) everything works, but when I publish my changes and update my main project (Server located in Brazil), I get the following: Error reason: ImageAnalysisErrorReason.CONNECTION_FAILURE Error code: -1 Error message:…
Azure IoT SDK
Azure AI services
3rd party library works on Azure uart sample but doesnt work on Azure Iot sample
I have been testing with using a 3rd party library in Azure UART sample which was working in Azure starter kit device. But when I tried the same library with the Azure Iot sample, I faced several issues. I can't disclose more about this here. Is there…
Azure IoT Hub
Azure IoT SDK

Iot hub message quota increasing out of nowhere
Good afternoon, My IOT HUB message quota is increasing during the day for no reason. Device-to-cloud telemetry is only sent twice a day, one message in the morning and one message in the afternoon. I would like to know if the MQTT keep alive messages are…
Azure IoT Hub
Azure IoT SDK


Azure IoT SDK - C (Running on TI CC3235SF gateway)
When I call Prov_Device_LL_Register_Device() function is returning error code 10 = PROV_DEVICE_RESULT_ERROR. Unable to understand what it means and what should be checked. CLIENT_SAMPLE_INFO user_ctx; memset(&user_ctx, 0,…
Azure IoT SDK
com.microsoft.azure.sdk.iot.device.transport.TransportException: Could not send request to HSM
Runtime: Java SDK version : com.microsoft.azure.sdk.iot:iot-device-client:2.0.3 When upgrading the version, we encountered the below exception: Caused by: java.io.IOException: com.microsoft.azure.sdk.iot.device.transport.TransportException:…
Azure Internet of Things
Azure IoT Edge
Azure IoT SDK
Unable to set proxy in Azure Edge Runtime
Hi, I am following this tutorial to add proxy to my edge device and trying to connect to Azure IoT Hub. But the values are not reflected when I run systemctl show --property=Environment aziot-edged systemctl show --property=Environment…
Azure IoT Edge
Azure IoT Hub
Azure IoT SDK
IoT Device Assertion Error freezing IoT device
Hi, I am running around 20 devices on IoT hub using the IoT device python SDK. Around once a day I get this Assertion Error that will cause the device to stop sending messages to the Hub. Is anyone able to help with this?
Azure IoT Hub
Azure IoT SDK

Blob upload to azure blob storage is failed as unable to locate the blob.
Facing issue while uploading a blob to azue blob storage, detailed steps described below Using azure-iot-sdk-c on top of it consuming CURL api's in application to upload a blob. CURL-easy-perform is returning a success code after uploading the…
Azure Blob Storage
Azure IoT SDK

Azure SDK Disconnect abruptly in low bandwidth
Azure SDK Disconnet abruptly in low bandwidth We are using SDK version LTS_01_2021_Ref01 in our pipeline to push data to Azure IoT Hub with sampling rate as 1sec, and also upgraded the SDK version to LTS_07_2021_Ref01but issue persists. Data is…