-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Stack overflow #756
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
Comments
This looks like software watchdog reset. Could you please check if removing On Mon, Sep 7, 2015, 13:53 Gordon Endersby [email protected] wrote:
|
Ive also posted this on ESP8266.COM. Igrr, thanks, Ill check that in the next hour or so. Gordon |
Yep, removed the calls to readvdd33 and it works a charm. Is this a bug in the arduino support or a problem with how Im using it? Thanks for looking at this. |
use ADC_MODE(ADC_VCC), ESP.getVcc(). check ESP-specific APIs at |
That stops the stack overflow. Whats the difference between readvdd33 and ESP.getVcc()? Thanks Gordon |
Great to know that everything is fine now! Just for the record, this wasn't a stack overflow :)
without Now regarding The bottom line is, don't use |
Thanks for the explanation. There are a few examples of reading the input voltage around that use readvdd33. Thanks again. |
I have the same issue... Any thoughts? #include <SoftwareSerial.h> /* wiring the MFRC522 to ESP8266 (ESP-12) #define RST_PIN 16 // RST-PIN für RC522 - RFID - SPI - Modul GPIO15 const char *ssid = "thethings.iO - HQ"; // change according to your Network - cannot be longer than 32 characters! MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance SoftwareSerial swSer(D1, D2, false, 256); #define TOKEN "TtoajojQcU1KXGNQti1hTMolsrC519tf32HBD7bZf1s" WiFiClient wifiClient; void callback(char* topic, byte* payload, unsigned int length) { String topic = "v2/things/" + String(TOKEN); // Helper routine to dump a byte array as hex values to Serial String byteToString(byte *buffer, byte bufferSize) { void reconnect() { void setup() { WiFi.begin(ssid, pass); int retries = 0; while (!client.connect("ESP12Client")) { } mfrc522.PCD_Init(); // Init MFRC522 void loop() { while (swSer.available() > 0) { |
Hi chaps,
Ive just updated my arduino ide support for the ESP8266 to the latest stable version.
But a previously working program using the sleep timers is now playing up.
Im using an ESP8266-12 on a breadboard exactly as I did when it was working under the previous Stable version.
Usually I use the board definition for the Nodemcu for the esp8266-12.
I have also tried the generic definition but it still fails.
I notice that the board definitions now mentions spiffs does this reduce the memory available?
Im getting what seems to be a stack overflow after it connects to the wifi router.
This will happen after a couple of sleep and restarts
The ESP then reboots and can no longer connect to the wifi router.
I get this in the serial monitor:
// Read all the lines of the reply from server and print them to Serial
Serial.println("Response: ");
while(client.available()){
String line = client.readStringUntil('\r');
Serial.print(line);
}
Serial.println();
Serial.println("closing connection");
The text was updated successfully, but these errors were encountered: