AWS IoT buffer issue

newhobby
Posts: 25
Joined: Sun Aug 19, 2018 4:36 am

AWS IoT buffer issue

Postby newhobby » Thu Dec 31, 2020 1:14 am

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?

newhobby
Posts: 25
Joined: Sun Aug 19, 2018 4:36 am

Re: AWS IoT buffer issue

Postby newhobby » Fri Jan 08, 2021 11:45 pm

Does anybody have any ideas?

chegewara
Posts: 1392
Joined: Wed Jun 14, 2017 9:00 pm

Re: AWS IoT buffer issue

Postby chegewara » Sat Jan 09, 2021 7:04 am

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.

Who is online

Users browsing this forum: No registered users and 50 guests