Disable wifi with button

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Drowwy
New user
Posts: 8
Joined: 26 Dec 2018, 14:49

Disable wifi with button

#1 Post by Drowwy » 27 Jan 2019, 12:24

Hi, would it be possible with a rule to disable the wifi on a button click and enable it again on a second click?
Thanks for suggestions.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Disable wifi with button

#2 Post by grovkillen » 27 Jan 2019, 13:06

You can use wifi connect and disconnect to disable connection. But the wifi module will still be active. What are you wanting to accomplish?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Drowwy
New user
Posts: 8
Joined: 26 Dec 2018, 14:49

Re: Disable wifi with button

#3 Post by Drowwy » 27 Jan 2019, 14:08

Thank you for the reply.
I would like to disable the wifi module in the night time.
Could I use modemsleep?
The next best thing would be to enable deep sleep during the night time.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Disable wifi with button

#4 Post by grovkillen » 27 Jan 2019, 16:25

If you don't want the units active during night I'd say that deep sleep is the way to go.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Drowwy
New user
Posts: 8
Joined: 26 Dec 2018, 14:49

Re: Disable wifi with button

#5 Post by Drowwy » 27 Jan 2019, 20:54

The best thing would be an active unit without wifi as it has an lcd and buttons that work offline.
If that is not possible I will think of a solution with deep sleep.
I guess it would need to wake up from time to time then to check if the "active" condition is met.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Disable wifi with button

#6 Post by grovkillen » 27 Jan 2019, 21:27

Yeah, something like that is needed with current implementation.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 36 guests