ExploreEmbedded / Hornbill-Examples

89 stars 171 forks source link

large payloads do not get returned #27

Closed intelligentandgoodlooking closed 3 years ago

intelligentandgoodlooking commented 3 years ago

I can subscribe to a topic and get a return when the payload is small, but if it goes above around 470 characters, the subscription stops receiving. Must be a buffer size somewhere, but I'm struggling to find it.

intelligentandgoodlooking commented 3 years ago

found it! Inside aws_iot_config.h #define AWS_IOT_MQTT_RX_BUF_LEN 512 It must contain the topic name also, that's why my payload limit was around 470