azure-iot-middleware-freertos

Steve Gal 0 Reputation points
2025-02-19T16:53:07.38+00:00

Hello,

I am trying to integrate the azure-iot-middleware-freertos repository into and ESP32 project. The documentation states that a developer can use Cmake to add the repository to a project via:

add_subdirectory(azure-iot-middleware-freertos)

Are an example which show how to pass the necessary details to CMake without having to modify the CMakeList within the repo?

Also are there anymore details on the porting information needed to pass to the subdirectory? The details pretty vague.

The sample repo is pretty useless since all of the examples build from source and do not utilize the above Cmake command. If "building from source" is the path to take for integration, why bother describing the Cmake add_subdirectory route?

From README within the azure-iot-middleware-freertos repo:
FREERTOS_DIRECTORY: Full path to a directory which contains FreeRTOS (as set up on GitHub).

  • FREERTOS_PORT_DIRECTORY: The full path to the freertos port that you would like to use. On GitHub you can find the list here. Locally, if you initialize the FreeRTOS submodules, you can find the options in <FREERTOS_DIRECTORY>/FreeRTOS/Source/portable
  • CONFIG_DIRECTORY: The full path which has the following files: FreeRTOSConfig.h, azure_iot_config.h, and core_mqtt_config.h.
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,244 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manas Mohanty 745 Reputation points Microsoft Vendor
    2025-02-20T10:50:40.43+00:00

    Hi Steve Gal

    I think, correct repository for installing azure-iot-middleware-freertos would be below ones.

    1. https://github.com/Azure-Samples/iot-middleware-freertos-samples
    2. https://github.com/Azure/azure-iot-middleware-freertos

    Found it in the instruction on connecting ESP32 to IOT hub documentation.

    Hope it helps.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.