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

payload in Adafruit_MQTT publish should be const #115

Open
flavio-fernandes opened this issue Mar 4, 2018 · 0 comments
Open

payload in Adafruit_MQTT publish should be const #115

flavio-fernandes opened this issue Mar 4, 2018 · 0 comments

Comments

@flavio-fernandes
Copy link
Contributor

flavio-fernandes commented Mar 4, 2018

The Method:
bool Adafruit_MQTT_Publish::publish(uint8_t *payload, uint16_t bLen)

should be

bool Adafruit_MQTT_Publish::publish(const uint8_t *payload, uint16_t bLen)

since payload is not modified in the implementation.

Proposed fix in PR #114

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

1 participant