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

Cannot edit header file? #190

Closed
hamfoo opened this issue Aug 12, 2016 · 2 comments
Closed

Cannot edit header file? #190

hamfoo opened this issue Aug 12, 2016 · 2 comments

Comments

@hamfoo
Copy link

hamfoo commented Aug 12, 2016

I would like to change the value of: MQTT_MAX_PACKET_SIZE

If I replace 128 with say 200 and save, then build/compile, the value changes back to 128.

I am using platformio to build&upload to ESP8266.

// MQTT_MAX_PACKET_SIZE : Maximum packet size

ifndef MQTT_MAX_PACKET_SIZE

define MQTT_MAX_PACKET_SIZE 128

endif

@knolleary
Copy link
Owner

I believe in platformio you can use -D options when compiling in order to override those values... that is why we added the ifndef checks (see #124 and #119) - I don't know, I've not used it.

@hamfoo
Copy link
Author

hamfoo commented Aug 12, 2016

Of course! I also found an alternative way which is to rename the pubsubclient library files and add them as private libraries. Thanks!

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