This commit is contained in:
lumapu 2022-11-12 15:24:12 +01:00
parent 4093be7e70
commit 56cfffbcd8
3 changed files with 16 additions and 17 deletions

View file

@ -43,7 +43,7 @@ void app::setup(uint32_t timeout) {
#ifndef AP_ONLY
setupMqtt();
if(mMqttActive)
mPayload.addListener(std::bind(&MqttType::payloadEventListener, mMqtt, std::placeholders::_1));
mPayload.addListener(std::bind(&MqttType::payloadEventListener, &mMqtt, std::placeholders::_1));
#endif
setupLed();