Ticket #37: FB_MQTTPUBSUB : Before sending a payload, ensure that MQTT.MQTTParam.g_udiMaxPayloadSize and g_udiMaxPacketSize are appropriately set discussion
In the current version of the MQTT Client library, a received payload too big will Error the MQTTClient without Error Message. Sending a payload too big will result in an Access Violation.
So we should definitely error check the payload is smaller than the g_udiMaxPayloadSize.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the current version of the MQTT Client library, a received payload too big will Error the MQTTClient without Error Message. Sending a payload too big will result in an Access Violation.
So we should definitely error check the payload is smaller than the g_udiMaxPayloadSize.
Check behaviour of this occurrence (via unit-test) and implement options for mitigation:
Recv buffer should get a separate ticket in SVP phase