mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +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)
|
||||
{
|
||||
#if HASP_USE_TELNET > 0
|
||||
if(!strcmp_P(payload, "start telnet")) {
|
||||
telnetStart();
|
||||
} else if(!strcmp_P(payload, "stop telnet")) {
|
||||
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();
|
||||
} else if(!strcmp_P(payload, "stop http")) {
|
||||
httpStop();
|
||||
} else {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/******************************************* Commands builder *******************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user