Skip to content

Conversation

mikegray
Copy link

@mikegray mikegray commented Dec 9, 2019

When MAX_MQTT_PACKET_SIZE is greater than the TCP receive buffer size, readPacket should try to read more from the ipstack. This fixes an issue I was facing with a message being 916 bytes, but the TCP receive buffer size for Mbed OS is 536 bytes. This will still exit if timer elapses or if the network data is not available.

Signed-off-by: Mike Gray <mike@mikegray.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant