Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA not working on version 0.9.5 #15

Open
gmag11 opened this issue Nov 6, 2020 · 3 comments
Open

OTA not working on version 0.9.5 #15

gmag11 opened this issue Nov 6, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gmag11
Copy link
Owner

gmag11 commented Nov 6, 2020

OTA is not working on any version. It's not been any change on OTA management since some time ago so it must be something external.

Activity LED does not flash so it seems that it is due to an external library.

@gmag11 gmag11 added the bug Something isn't working label Nov 6, 2020
@gmag11 gmag11 self-assigned this Nov 6, 2020
@gmag11
Copy link
Owner Author

gmag11 commented Nov 6, 2020

On 20th may 2020 @knolleary published version 2.8 of PubSubClient library. It uses a buffer of 256 bytes to receive mqtt messages.
EnigmaIOTGatewayMQTT solved this by redefining MQTT_MAX_PACKET_SIZE to 2048. After PubSubClient v2.8 is released this solution is not valid anymore. As you can read on PubSubClient release notes, using setBufferSize() this can be fixed.

This will be integrated on version 0.9.6. Meanwhile please use PubSubClient version v2.7

@knolleary
Copy link

Hi @gmag11

you should still be able to use MQTT_MAX_PACKET_SIZE to set the packet size. The setBufferSize() was added as a way to allow the sketch to change the size from whatever MQTT_MAX_PACKET_SIZE was set to.

@gmag11
Copy link
Owner Author

gmag11 commented Nov 7, 2020

Thank you @knolleary. I'll investigate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants