mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add config/gpio support
This commit is contained in:
parent
51c97f16d9
commit
96dddbb5b2
@ -420,6 +420,15 @@ static void dispatch_config(const char* topic, const char* payload)
|
|||||||
haspGetConfig(settings);
|
haspGetConfig(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HASP_USE_GPIO > 0
|
||||||
|
else if(strcasecmp_P(topic, PSTR("gpio")) == 0) {
|
||||||
|
if(update)
|
||||||
|
gpioSetConfig(settings);
|
||||||
|
else
|
||||||
|
gpioGetConfig(settings);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HASP_USE_WIFI > 0
|
#if HASP_USE_WIFI > 0
|
||||||
else if(strcasecmp_P(topic, PSTR("wifi")) == 0) {
|
else if(strcasecmp_P(topic, PSTR("wifi")) == 0) {
|
||||||
if(update)
|
if(update)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user