How to disable wifi AND APmode with a delay after boot
Posted: 07 Feb 2022, 22:03
Hello,
For my ventilation control project I need to be able to access the ESP using APmode after boot/power on .
(My wifi network is not strong enough to reach the ESP which is in a ceiling and I do not need constant link)
But once it is running and rules are OK, I would like to disable all wifi connections and APmode.
Say after 30 minutes, the ESP should be muted, but not sleeping as it needs to keep on monitoring Humidity
to activate the relay as soon as a treshsold is met. (In real conditions this is working as expected! It switches
on and off the connection "N123" wich is in theory ment for a toilet switch when humidity is > 70 and during 10 minutes
more after humidity is back below the threshold. But the APMode stays visible...)
Using rules with Timer, and WifiDisconnect, I thought I was not far away from a solution...
But - as I searched quite extensively - I think there is no "WIFIAPMODEOFF" command (or similar). But perhaps there is another solution I'm not aware of?
My idea was a rule like this one:
on System#Boot do
timerSet,2,1800
EndOn
On Rules#Timer=2 do
??? WIFIAPMODEOFF ???
WifiDisconnect
endon
If you have a suggestion I would be glad to test it.
Thanks all for sharing all this: I've learned a lot!
Regards,
For my ventilation control project I need to be able to access the ESP using APmode after boot/power on .
(My wifi network is not strong enough to reach the ESP which is in a ceiling and I do not need constant link)
But once it is running and rules are OK, I would like to disable all wifi connections and APmode.
Say after 30 minutes, the ESP should be muted, but not sleeping as it needs to keep on monitoring Humidity
to activate the relay as soon as a treshsold is met. (In real conditions this is working as expected! It switches
on and off the connection "N123" wich is in theory ment for a toilet switch when humidity is > 70 and during 10 minutes
more after humidity is back below the threshold. But the APMode stays visible...)
Using rules with Timer, and WifiDisconnect, I thought I was not far away from a solution...
But - as I searched quite extensively - I think there is no "WIFIAPMODEOFF" command (or similar). But perhaps there is another solution I'm not aware of?
My idea was a rule like this one:
on System#Boot do
timerSet,2,1800
EndOn
On Rules#Timer=2 do
??? WIFIAPMODEOFF ???
WifiDisconnect
endon
If you have a suggestion I would be glad to test it.
Thanks all for sharing all this: I've learned a lot!
Regards,