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

ESP8266 #81

Open
ggadalet opened this issue Aug 15, 2019 · 2 comments
Open

ESP8266 #81

ggadalet opened this issue Aug 15, 2019 · 2 comments

Comments

@ggadalet
Copy link

Would this library work for ESP8266 microcontroller ?

@hirotakaster
Copy link
Owner

@ggadalet
use pubsubclient ( https://github.com/knolleary/pubsubclient )

@ggadalet
Copy link
Author

Used the https://github.com/knolleary/pubsubclient and it's working now.

Be aware of this constant I had to change in PubSubClient.h to accomodate my json message in the payload to be sent.

// MQTT_MAX_PACKET_SIZE : Maximum packet size
#ifndef MQTT_MAX_PACKET_SIZE
//#define MQTT_MAX_PACKET_SIZE 128
#define MQTT_MAX_PACKET_SIZE 300
#endif

thanks
regards
Giovanni

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants