mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Check for defines in dispatch_service
This commit is contained in:
parent
5b2e7dc96b
commit
6ac5a245c7
@ -1103,16 +1103,21 @@ void dispatch_theme(const char*, const char* themeid)
|
|||||||
|
|
||||||
void dispatch_service(const char*, const char* payload)
|
void dispatch_service(const char*, const char* payload)
|
||||||
{
|
{
|
||||||
|
#if HASP_USE_TELNET > 0
|
||||||
if(!strcmp_P(payload, "start telnet")) {
|
if(!strcmp_P(payload, "start telnet")) {
|
||||||
telnetStart();
|
telnetStart();
|
||||||
} else if(!strcmp_P(payload, "stop telnet")) {
|
} else if(!strcmp_P(payload, "stop telnet")) {
|
||||||
telnetStop();
|
telnetStop();
|
||||||
} else if(!strcmp_P(payload, "start http")) {
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HASP_USE_HTTP > 0 || HASP_USE_HTTP_ASYNC > 0
|
||||||
|
if(!strcmp_P(payload, "start http")) {
|
||||||
httpStart();
|
httpStart();
|
||||||
} else if(!strcmp_P(payload, "stop http")) {
|
} else if(!strcmp_P(payload, "stop http")) {
|
||||||
httpStop();
|
httpStop();
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************* Commands builder *******************************************/
|
/******************************************* Commands builder *******************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user