mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-21 18:26:35 +00:00
Add service start/stop mqtt #174
This commit is contained in:
parent
74092ce5be
commit
702143e5ee
@ -1360,6 +1360,14 @@ void dispatch_service(const char*, const char* payload, uint8_t source)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HASP_USE_MQTT > 0 && defined(HASP_USE_ESP_MQTT)
|
||||
if(!strcmp_P(payload, "start mqtt")) {
|
||||
mqttStart();
|
||||
} else if(!strcmp_P(payload, "stop mqtt")) {
|
||||
mqttStop();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ARDUINO && HASP_USE_CONSOLE
|
||||
if(!strcmp_P(payload, "start console")) {
|
||||
consoleStart();
|
||||
|
Loading…
x
Reference in New Issue
Block a user