Open flavio-fernandes opened 6 years ago
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 https://github.com/adafruit/Adafruit_MQTT_Library/pull/114
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 https://github.com/adafruit/Adafruit_MQTT_Library/pull/114