Non-Edge translation gateway examples using Azure IoT C SDK?

vv 0 Reputation points
2023-06-30T19:03:09.6966667+00:00

I'm trying to find code examples to build a translation gateway (NOT an Edge system) using C, preferably the C SDK with task control using FreeRTOS, although I could probably wrap everything RTOS myself if I had the rest of the example code working.

The goal is to have one device connected to Azure IoT Central via WiFi which can (1) provision existing but not-yet provisioned devices and (2) publish telemetry on their behalf (they cannot connect to the internet directly but will be on buses, local radios, filesystems, etc.).

The purpose of using the C SDK is for compatibility with a few microcontrollers that are relatively less constrained but still cannot run Linux, Windows, etc. (e.g. Espressif ESP32/Pico-D4). The purpose of avoiding Edge is hardware constraints (power, cost, etc.) of the project.

Are there any examples of this so so I don't have to build one from scratch?

Is there any way to do this other than AMQP "multiplexing" using multiple IoT Hub device clients objects that take turns sending?

Is there any way to publish telemetry messages using MQTT that will appear as separate devices in IoT Central? I'm reading here that "Any new MQTT connection on behalf of the same device ID causes IoT Hub to drop the existing connection"... but is there a way to on behalf of other device IDs?

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
391 questions
Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
358 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
211 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vv 0 Reputation points
    2023-07-20T14:00:46.8166667+00:00

    Does anyone know the combination of APIs and functions I'd need, or the various code samples I could stitch together to make this work?

    0 comments No comments