mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-15 04:37:07 +01:00
mqtt: payload is not const
Even if std::function compiles with the wrong (but compatible) signature
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user