fix: mqtt subscriptions, web devcelist, roomcontrol replys after switchoff

This commit is contained in:
MichaelDvP
2020-07-07 16:46:27 +02:00
parent 6b3b97efe6
commit 40ac7bbf5b
5 changed files with 15 additions and 15 deletions

View File

@@ -256,6 +256,9 @@ void Mqtt::start(AsyncMqttClient * mqttClient) {
#ifndef EMSESP_STANDALONE
mqttClient_->setWill(make_topic(will_topic_, "status"), 1, true, "offline"); // with qos 1, retain true
mqttClient_->onMessage([this](char * topic, char * payload, AsyncMqttClientMessageProperties properties, size_t len, size_t index, size_t total) {
on_message(topic, payload, len);
});
#endif
}