mqtt: payload is not const

Even if std::function compiles with the wrong (but compatible) signature
This commit is contained in:
Maxim Prokhorov
2021-08-21 01:07:59 +03:00
parent 31688f1bf0
commit e6a0e505b3
16 changed files with 17 additions and 17 deletions

View File

@@ -139,7 +139,7 @@ void _telnetReverse(const char * host, uint16_t port) {
#if MQTT_SUPPORT
void _telnetReverseMQTTCallback(unsigned int type, const char * topic, const char * payload) {
void _telnetReverseMQTTCallback(unsigned int type, const char* topic, char* payload) {
if (type == MQTT_CONNECT_EVENT) {
mqttSubscribe(MQTT_TOPIC_TELNET_REVERSE);
} else if (type == MQTT_MESSAGE_EVENT) {