mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Add discovery command
This commit is contained in:
parent
76ae156018
commit
b414e23601
@ -40,7 +40,7 @@ dispatch_conf_t dispatch_setings = {.teleperiod = 300};
|
|||||||
|
|
||||||
uint32_t dispatchLastMillis = -3000000; // force discovery
|
uint32_t dispatchLastMillis = -3000000; // force discovery
|
||||||
uint8_t nCommands = 0;
|
uint8_t nCommands = 0;
|
||||||
haspCommand_t commands[19];
|
haspCommand_t commands[20];
|
||||||
|
|
||||||
struct moodlight_t
|
struct moodlight_t
|
||||||
{
|
{
|
||||||
@ -986,6 +986,7 @@ void dispatchSetup()
|
|||||||
dispatch_add_command(PSTR("reboot"), dispatch_reboot);
|
dispatch_add_command(PSTR("reboot"), dispatch_reboot);
|
||||||
dispatch_add_command(PSTR("restart"), dispatch_reboot);
|
dispatch_add_command(PSTR("restart"), dispatch_reboot);
|
||||||
dispatch_add_command(PSTR("screenshot"), dispatch_screenshot);
|
dispatch_add_command(PSTR("screenshot"), dispatch_screenshot);
|
||||||
|
dispatch_add_command(PSTR("discovery"), dispatch_send_discovery);
|
||||||
dispatch_add_command(PSTR("factoryreset"), dispatch_factory_reset);
|
dispatch_add_command(PSTR("factoryreset"), dispatch_factory_reset);
|
||||||
#if HASP_USE_CONFIG > 0
|
#if HASP_USE_CONFIG > 0
|
||||||
dispatch_add_command(PSTR("setupap"), oobeFakeSetup);
|
dispatch_add_command(PSTR("setupap"), oobeFakeSetup);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user