Azure IOT message too big

Ralph Loveday 1 Reputation point

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.


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

    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 library?

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