I am trying to find out how to prevent buffer overrun on the AWS library.
Everything is working fine, but if a message too long is sent on the subscribed topic, I get this:
E (71630) WIFI: rc: -11
E (71640) WIFI: An error occurred in the main loop.
E (72650) WIFI: rc: -31
E (72650) WIFI: An error occurred in the main loop.
E (73660) WIFI: rc: -31
E (73660) WIFI: An error occurred in the main loop.
E (74670) WIFI: rc: -31
E (74670) WIFI: An error occurred in the main loop.
And the connection is dropped and never recovered.
How can I prevent this from happening?
AWS IoT buffer issue
Re: AWS IoT buffer issue
Does anybody have any ideas?
Re: AWS IoT buffer issue
Check data length before sending or increase RX buffer size, but this can be done only in library IIRC.
Another thing is to reconnect when this is happening.
Another thing is to reconnect when this is happening.
Who is online
Users browsing this forum: Bing [Bot], Hello1024, HitecSmartHome and 280 guests