Azure IOT message too big

Ralph Loveday 1 Reputation point
2021-07-15T05:52:59.787+00:00

I have had successful message transfers to our Azure IOT connection, but am getting errors if the message is too big.
If the message length is 5438 bytes the message is confirmed and I can see the data, but if the message is 5458 bytes the message fails.

IOT result message is IOTHUB_CLIENT_CONFIRMATION_BECAUSE_DESTROY

It fails here ... (timeout is 10 seconds)
int diff = (int)(millis() - start_ms);
if (diff >= EVENT_TIMEOUT_MS)
{
// Time out, reset the client
LogError("Waiting for send confirmation, time is up %d", diff);
resetClient = true;
}

I can't find a setting in the IOT SDK code or in our Azure account that relates to this limit.
What have I missed?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 28,311 Reputation points MVP
    2021-07-16T08:03:17.807+00:00

    Hello @Ralph Loveday ,

    There are multiple libraries on Github supporting Azure IoT access on an ESP.

    I recommend trying out another library.

    Is this part of this https://github.com/espressif/esp-azure library?

    Just this week, Microsoft announced this middleware for Free-RTOS.