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

@@ -68,7 +68,7 @@ void _uartmqttSendUART(const char * message) {
UART_MQTT_PORT.println(message);
}
void _uartmqttMQTTCallback(unsigned int type, const char * topic, const char * payload) {
void _uartmqttMQTTCallback(unsigned int type, const char* topic, char* payload) {
if (type == MQTT_CONNECT_EVENT) {
mqttSubscribe(MQTT_TOPIC_UARTOUT);