Microsoft Azure IoT Hub + MQTT

Wasabinary
Posts: 13
Joined: Fri Apr 23, 2021 10:09 am

Microsoft Azure IoT Hub + MQTT

Postby Wasabinary » Wed Jun 23, 2021 2:33 pm

Hi all,

I am currently trying to send MQTT messages to an IoT Hub account without using the SDK. I followed this tutorial to directly use MQTT to send messages to IoT Hub : https://docs.microsoft.com/en-us/azure/ ... tt-support

I generated my own pem certifictae in order to connect securely to Microsoft Azure and I am able to send small payload every second to IoT Hub using MQTT. But the thing is, when the payload reaches around 1kB, I can only send 2 or 3 messages before getting this error :

MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=128
MQTT_CLIENT: mqtt_process_receive: mqtt_message_receive() returned -1


--> I don't think the problem is linked to the IoT Hub account type as I made sure I can manage such payload sizes.

Does anyone know how to solve this issue ?

Who is online

Users browsing this forum: No registered users and 177 guests