Xinyuan-LilyGO / LilyGo-T-SIM7080G

42 stars 22 forks source link

MQTT Subscription fails when payload > 1024 characters #24

Closed babakc closed 2 months ago

babakc commented 12 months ago

I'm connecting to AWS IoT Core to pub/sub to the MQTT broker and it all works fine until I attempt to subscribe to a topic that receives a payload larger than 1024 characters. The payload never arrives and all subsequent payloads (ones less than 1024 characters) fail to be received. I've tried setting #define TINY_GSM_RX_BUFFER 2048 and modem.sendAT("+SMCONF=\"MESSAGE\", 2048"), but neither has resolved the issue.

The 7080g documentation doesn't indicate there's a character limit for subscribe, but mentions the max payload size for publish is 1024 characters.

So my question is, is it possible to subscribe to a topic that has payloads of larger than 1024 characters or do I need to send multiple payloads?

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.