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

@@ -1657,7 +1657,7 @@ bool _lightMqttHeartbeat(heartbeat::Mask mask) {
return mqttConnected();
}
void _lightMqttCallback(unsigned int type, const char * topic, const char * payload) {
void _lightMqttCallback(unsigned int type, const char* topic, char* payload) {
String mqtt_group_color = Light::settings::mqttGroup();
if (type == MQTT_CONNECT_EVENT) {