Hi everyone! Please fix this line regarding the payload length field type to use uint16_t, since I spent a long time trying to figure out why, on the AWS side, messages longer than 256 bytes are truncated to a multiple of 256 (for example, 300 - 256 = 44, so only the first 44 bytes of a 300-byte payload are received). Since it is important to note that the payload for an MQTT packet can exceed 256 bytes):
Hi everyone! Please fix this line regarding the payload length field type to use uint16_t, since I spent a long time trying to figure out why, on the AWS side, messages longer than 256 bytes are truncated to a multiple of 256 (for example, 300 - 256 = 44, so only the first 44 bytes of a 300-byte payload are received). Since it is important to note that the payload for an MQTT packet can exceed 256 bytes):
pic-iot-aws-sensor-node/PICIoT.X/mcc_generated_files/mqtt/mqtt_core/mqtt_core.h
Line 243 in 624bfbc