how to send telemetry from esp32 device to azure via a transparent gateway?

Anonymous
2023-03-23T03:37:51.7733333+00:00

I have setup a transparent edge gateway using a ubuntu machine referring to https://learn.microsoft.com/en-us/azure/iot-edge/how-to-create-transparent-gateway?view=iotedge-1.4&tabs=iotedge

Now how do I send telemetry from a esp32 device via this gateway to the azure iot hub?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
534 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
207 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 13,456 Reputation points
    2023-03-28T13:11:02.6333333+00:00

    Hi @Anonymous Thank you for your response and providing more details. The error message you see indicates that the code has a dependency on blob.h header file which seems to be missing. The header file on the repo is located in the internal/blob.h path.

    I would like to know if you can verify the code successfully using Arduino IDE without any errors. This will indicate if the code has any missing dependencies. If the code compiles without any issues, you will see an output similar to below in the output monitor of the Arduino IDE.

    User's image

    May I also know if there is any specific reason why you are trying to connect ESP8266 device to Azure IoT Hub through a gateway device? ESP8266 does support Wi-Fi comunication and there is a compatible SDK available for Arduino through which you can communicate with Azure IoT Hub directly from ESP8266 device. Here is the link to instructions on how to set up and use ESP8266 azure-sdk-for-c-arduino I want to check with you and see if you are aware of this direct approach. I have tested this approach and could send the data from ESP8266 device to my Azure IoT Hub without any issues. Please let me know if this is an approach you might be interested in.

    Kindly let us know if you still encounter any issues after testing the code by including the missing dependencies. We would be glad to work with you on this.