diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index 587adad..02766af 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -541,7 +541,7 @@ void mqtt_callback(char *topic, byte *payload, unsigned int length) { ac_state_callback(topic, topic_length, payload_nt, length); } - user_mqtt_callback(topic_trim, topic_length, payload_nt, length); + user_mqtt_callback(topic, topic_length, payload_nt, length); } void thread_initialization()