-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset or Restart alwayf wdt reset #244
Comments
add a pullup resistor to GPIO0 (10k). |
Yes work. GPIO0 to 3.3v resistor and ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset boot working normaly. |
hi @tontito |
i tried add pullup resistors to GPIO0 (10k) and GPIO2(10k), but it not work. ets Jan 8 2013,rst cause:4, boot mode:(1,7) |
Also my board not always Reset correctly , I think is strong important that esp.restart() do a reset, if not I will try to use a pin to rst Sent from my iPhone
|
Make sure you also have GPIO15 pulled low, and both RST and CH_PD pins pulled high. |
yes,ESP.restart() working . when you Upload Code to ESP8266. ESP8266 in mode UART so when restart esp will in mode UART. you should turn off power after use ESP.restart() |
Sorry for asking this Question here. Thank in Advance!! |
take a look here: |
@Links2004 Thanks a lot for your reference!!. But I could not understand , how it could remember the SSID and PASSWORD, even after the unit is restarted?? |
SSID, password, and WiFi mode (AP/STA) are stored in flash memory. On Wed, Sep 2, 2015, 09:14 Lakshmi Narasimhan Ravichandran <
|
@igrr Thanks for that!!. I have a question now. |
using |
@Links2004 Thanks a lot for the information!!. Sorry for my Consecutive questions. It would be of a great help if you could post here an example for setting up the connection only once and to use that connection further , unless and until there is a change with the network configuration!! Thanks in Advance!! |
a simple SSID check will do it for example: #define SSID "test123"
#define PW "123456789"
if(String(SSID) != WiFi.SSID()) {
WiFi.begin(SSID, PW);
} can be called in setup or loop. |
@Links2004 For the First time, I would use this "WiFi.begin(ssid,password)" to connect with the specified network. Let's say that I am restarting the WiFi Module after successfully connecting with the specified network. As @igrr says #244 (comment), how could I reconnect with the network , without using WiFi.begin() after restarting it. In short , my question is if WiFi.begin () is to be used , whenever there is a change with the network settings, so which command should I use to connect with the network using the ssid and password that are stored already there in the flash memory i.e when there is no change with the ssid and password? |
WiFI.begin(“”,””)
|
@lnsriravichandran22 you need to do nothing the SDK handle it itself no need for any peace of code. |
its working for me. What IS the right command to start wifi using stored credentials then?
|
no command is needed this mean nothing too do. eaven with a code like this: void setup(void) {
}
void loop(void) {
} the SDK will connect to the last wifi configuration :) the |
I'm curious ... is there a way to have the module only connect when I explicitly request it to? If you are saying it will always connect to the last stored credentials, is there a way - before I go to DeepSleep - to "disconnect" the Wifi and NOT have it reconnect when it wakes ... until I explicitly tell it to? |
yes
|
Sorry guys, just discovered this very interesting point and I'm wondering if I can have more details? I'm asking this because I want to manage connexion and I think it's not very optimized to disconnect (because SDK is connected) to plug my connection routine. By the way is it safe calling wifi.begin(bla,bla) when SDK is still trying to connect ?
|
but I have never seen that the value is to be respected by the SDK, it looks like it allways connect to the last settings after boot up. the easiest way is may simply compare the wifi config with stored one from SDK and if no changes, I think its possible change the begin function to do this kind of check internally so that there is no need for the application to keep track of it. |
@Links2004 |
I got the same issue showing the reset was for watchdog. I just Insert "ESP.wdtDisable();" inside loop and it doesn´t reset again. |
ESP.wdtDisable(); worked for me but my code had some while's and I had to put this line in each while |
ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset please help!!! |
please open a new Issue for you problem and provide more information's, |
Hi, I hope this helps You too! |
Hi everybody. To prevent reset, go to: It solved my reset problem in login to network. |
Thank you amirebr it saved my day. amirebr: It solved my reset problem in login to network. |
NodeMCU v1.0 ESP-12E -> This solved my problem: void setup() They conect LED to GPIO16 - this is the case LED_BUILTIN = D0 = GPIO16 and GPIO16 has Deep-sleep/wake function look this: https://www.losant.com/blog/making-the-esp8266-low-powered-with-deep-sleep In this case GPIO16 can't stay floating pin, use: "pinMode(LED_BUILTIN, OUTPUT);" to set pin GPIO16. For me, this is work even for Adafruit NeoPixel - no "wdt reset" ;) I don't see this message any more: |
@KamaJogi Thanks a lot for your tip!! |
Good
|
I have solved it !!,
May be helpfull Thanks : |
i have save eeprom ssid and password html and reset esp.
ESP.reset() or
ESP.restart() or
system_reset() or
system_restart() or
i tried code same error
wdtDisable()
ESP.restart()
Error:
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
ets Jan 8 2013,rst cause:4, boot mode:(1,7)
wdt reset
not boot i have hardware reset and working esp.
The text was updated successfully, but these errors were encountered: