Hello,
I am using MSP432E401Y for implementing cloud based IoT data logging. I have used "simplelink_msp432e4_sdk_3_10_00_11" sdk in NO-RTOS mode and used its mbedtls library with lwip+mqtt.
I have successfully connected and published data upto 1000bytes to secure mqtt broker (viz. AWS/ Mosquitto, etc.). But when my data length goes beyond 1024 bytes, then while trying to publish data, it won't get received on broker; instead my connection with broker got disconnected. In mqtt library file, 'mqtt_recv_callback' function called with null pbuf which indicates connection is disconnected when I try to publish more than 1024bytes data.
Observations:
1. Data gets published to any mqtt broker successfully if length of the data is less than 1024 byes
2. I tried to publish data of length 2048 bytes using third party mqtt client viz. 'MQTT_BOX' on both AWS & Mosquitto secure broker and it got published successfully. (i.e. No error on broker side)
3. In lwipopts.h file I have set macros as: #define TCP_WND 4096, #define TCP_MSS 4096
4. In mqtt_opt.h file macro set as: #define MQTT_OUTPUT_RINGBUF_SIZE 5120
5. Below is the wireshark log where yellow highlighted row indicates the data being published by device (using lwip mqtt file) to secure mosquitto broker. But the broker sends disconnect i.e. (FIN,ACK) in response.
6. Below wireshark screenshot shows data being published successfully when its length is less than 1024 bytes (note highlighted yellow marked lines)
Kindly suggest some solution on this.