Azure-iot-sdk-c: can i use this SDK on Zephyr RTOS?

Created on 19 Apr 2021  路  4Comments  路  Source: Azure/azure-iot-sdk-c

Hi guys,

I want to connect a device with the Azure IoT cloud for my project with Zephyr RTOS. The memories on my device are less than 1mb. I tried to connect by using directly the MQTT protocol but the SRAM on the STM32 was not enough. Now I want to try to build an application with this SDK.

Is that possible to use this SDK in Zephyrproject ? Has someone of you experience with this ??

IoTSDK question

Most helpful comment

The Azure SDK for C essentially helps parsing MQTT topics and working with MQTT features of IoT Hub. You will need to bring your own MQTT, TLS, and TCP/IP. It will require more stitching together on your part but it ensures a smaller binary size. Zephyr has their own MQTT stack which you could incorporate here. Some TLS with MQTT docs seems to be here.

We have a sample here for esp32 that you can use as general guidance of stitching together the embedded sdk and mqtt:
https://github.com/Azure/azure-sdk-for-c/blob/master/sdk/samples/iot/aziot_esp32/aziot_esp32.ino

All 4 comments

Please look at the "Azure SDK for Embedded C" This SDK is created for memory constrained devices.

You should also consider using Azure RTOS which includes the Azure embedded C SDK and has samples for the STM32 boards

https://github.com/azure-rtos/samples

Please look at the "Azure SDK for Embedded C" This SDK is created for memory constrained devices.

You should also consider using Azure RTOS which includes the Azure embedded C SDK and has samples for the STM32 boards

https://github.com/azure-rtos/samples

Thank you very much for your answer! I have 64Kb SRAM and 256Kb flash memory available in my STM32. Do you think is enough for this SDK ? how can i consume the Azure SDK for C to Zephyr?

The Azure SDK for C essentially helps parsing MQTT topics and working with MQTT features of IoT Hub. You will need to bring your own MQTT, TLS, and TCP/IP. It will require more stitching together on your part but it ensures a smaller binary size. Zephyr has their own MQTT stack which you could incorporate here. Some TLS with MQTT docs seems to be here.

We have a sample here for esp32 that you can use as general guidance of stitching together the embedded sdk and mqtt:
https://github.com/Azure/azure-sdk-for-c/blob/master/sdk/samples/iot/aziot_esp32/aziot_esp32.ino

The Azure SDK for C essentially helps parsing MQTT topics and working with MQTT features of IoT Hub. You will need to bring your own MQTT, TLS, and TCP/IP. It will require more stitching together on your part but it ensures a smaller binary size. Zephyr has their own MQTT stack which you could incorporate here. Some TLS with MQTT docs seems to be here.

We have a sample here for esp32 that you can use as general guidance of stitching together the embedded sdk and mqtt:
https://github.com/Azure/azure-sdk-for-c/blob/master/sdk/samples/iot/aziot_esp32/aziot_esp32.ino

Thank you very much! I will try it.

Was this page helpful?
0 / 5 - 0 ratings