mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1191] How to connect and disconnect to wifi cyclically #1019
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1019
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jordan1982 on GitHub (Jan 17, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1191
PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.
Issues without basic info will be ignored or closed!
Please fill the info fields, it helps to get you faster support ;)
if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst
for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
WiFimanager Branch/Release: Development
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
Core Version: 2.4.0, staging
Description
Problem description
Settings in IDE
Module: NodeMcu, Wemos D1
Additional libraries:
Sketch
Debug Messages
Hi,
I would need to connect and disconnect cyclically. I give an example:
The user enters the data via the web interface (ssid, password, mqtt server, mqtt user, mqtt password etc), the system waits 5 minutes and then connects to mqtt sends the message and then disconnects from mqtt and wifi. After another 5 minutes it reconnects to the previous wifi and repeats the loop.
How can I connect and disconnect from wifi through your library?
@svdrummer commented on GitHub (Feb 4, 2021):
Google ESP.Sleep() that's how we do it.
@tablatronix commented on GitHub (Feb 4, 2021):
Same way you would with any esp code.. nothing special here
@jordan1982 commented on GitHub (Mar 13, 2021):
With esp.sleep the data entered in the configuration page are lost?
Thanks for the help you can give me
@tablatronix commented on GitHub (Mar 13, 2021):
data such as wifi ? or custom params?
@jordan1982 commented on GitHub (Mar 14, 2021):
wifi and custom params
@tablatronix commented on GitHub (Mar 14, 2021):
well custom params have to be saved somewhere, esp wont remember them
sleepis really a reboot