mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #792] Different behaviour Wifimanager on 2 different ESP8266 12E #662
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#662
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 @randoniaina on GitHub (Dec 20, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/792
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
Hello everyone,
I do face a very weird situation. I have 2 ESP8266 12e.
One that I worked on early 2018, on which I have Wifimanager library (don't remember the version since I upgrade this version since then).
= > this board is connected to a wifi router
Two other boards on which I've bee working for 2 months and on which there are Wifimanager library also (version 0.14.0)
= > These 2 boards are also connected to the SAME WIFI ROUTER.
The problem is that the last 2 boards launch the config portal randomly (for an unknown reason) : the Wifi routeur is always on WHEREAS the former board (on which I worked on early 2018) does NOT launch the config portal randomly.
The expected behaviour would be the 1st behaviour (that on the former board).
Can someone please help ? I cannot figure it out.
Here the code of the older board
and this is the code on one of the latter board :
@tablatronix commented on GitHub (Dec 20, 2018):
have you erased the flash ?
@randoniaina commented on GitHub (Dec 20, 2018):
Yes I did every time I upload a sketch I tick "erase all flash" on the ide config. Then I enter the portalconfig and select the wifi router.
-------- Message d'origine --------De : Shawn A notifications@github.com Date : 20/12/2018 22:06 (GMT+03:00) À : tzapu/WiFiManager WiFiManager@noreply.github.com Cc : randoniaina andoniainarajaona@gmail.com, Author author@noreply.github.com Objet : Re: [tzapu/WiFiManager] Different behaviour Wifimanager on 2 different ESP8266 12E (#792)
have you erased the flash ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tzapu/WiFiManager","title":"tzapu/WiFiManager","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/tzapu/WiFiManager"}},"updates":{"snippets":[{"icon":"PERSON","message":"@tablatronix in #792: have you erased the flash ?"}],"action":{"name":"View Issue","url":"https://github.com/tzapu/WiFiManager/issues/792#issuecomment-449103287"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/tzapu/WiFiManager/issues/792#issuecomment-449103287",
"url": "https://github.com/tzapu/WiFiManager/issues/792#issuecomment-449103287",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
@randoniaina commented on GitHub (Dec 20, 2018):
What should I do if I want the following behaviour :- let the esp try to Connect to the wifi routeur even if it fails (do not let the esp open the portalconfig) - open the the portalconfig only and only if I push a button
Regards
-------- Message d'origine --------De : Shawn A notifications@github.com Date : 20/12/2018 22:06 (GMT+03:00) À : tzapu/WiFiManager WiFiManager@noreply.github.com Cc : randoniaina andoniainarajaona@gmail.com, Author author@noreply.github.com Objet : Re: [tzapu/WiFiManager] Different behaviour Wifimanager on 2 different ESP8266 12E (#792)
have you erased the flash ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tzapu/WiFiManager","title":"tzapu/WiFiManager","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/tzapu/WiFiManager"}},"updates":{"snippets":[{"icon":"PERSON","message":"@tablatronix in #792: have you erased the flash ?"}],"action":{"name":"View Issue","url":"https://github.com/tzapu/WiFiManager/issues/792#issuecomment-449103287"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/tzapu/WiFiManager/issues/792#issuecomment-449103287",
"url": "https://github.com/tzapu/WiFiManager/issues/792#issuecomment-449103287",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
@tablatronix commented on GitHub (Dec 20, 2018):
dont use autoconnect()
@tablatronix commented on GitHub (Dec 20, 2018):
Is it possible you have wore out the flash ram by writing too many times?
@randoniaina commented on GitHub (Dec 21, 2018):
No cause this behaviour started happening despite the board was New.
Can you confirm one thing ? Autoconnect is about connecting to a wifi routeur, Nothing to do with either or not there is internet provided by the wifi routeur, is that correct ?
Cause sometimes even if the routeur is on, there is internet connection problem.
Regards
Envoyé depuis mon smartphone Samsung Galaxy.
-------- Message d'origine --------De : Shawn A notifications@github.com Date : 20/12/2018 22:48 (GMT+03:00) À : tzapu/WiFiManager WiFiManager@noreply.github.com Cc : randoniaina andoniainarajaona@gmail.com, Author author@noreply.github.com Objet : Re: [tzapu/WiFiManager] Different behaviour Wifimanager on 2 different ESP8266 12E (#792)
Is it possible you have wore out the flash ram by writing too many times?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
@tablatronix commented on GitHub (Dec 21, 2018):
yeah sounds like something with the router I think there is some kind of problem disconnecting and reconnecting perhaps, the only thing I can think of is increase connecttimeout, or add your own loop ir delay and see if it fixes by letting the router reset the lost connections.
Have you checked to make sure your esp is not wdt reseting, causing these resets
Have you tried disabling sleep
WiFi.setSleepMode(WIFI_NONE_SLEEP); // disable wifi sleep@randoniaina commented on GitHub (Dec 22, 2018):
Seems like the router sometimes has some pblms assigning ip addresses. But the weird part is why the old board is not portalconfig showing whereas the newer ones are ?
Envoyé depuis mon appareil mobile Samsung.
null
@randoniaina commented on GitHub (Dec 22, 2018):
What is wifi sleep mode ? How to check the wdt reset or not ?
Tx in advance
Envoyé depuis mon appareil mobile Samsung.
null