Skip to content

NodeMCU v3 Reset #33

@konig87nikkinakki

Description

@konig87nikkinakki

Hi,
i receive this error (and reset) on serial when i run the following code:

Exception (3):
epc1=0x40100691 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4006e7e8 depc=0x00000000

 stack >  >   >

ctx: cont
sp: 3ffffd70 end: 3fffffc0 offset: 01a0
3fffff10: 007a1200 f669d6b0 00000000 3ffee874
3fffff20: 3fffdad0 00000000 00000020 4010093b
3fffff30: 3ffee0d0 3ffee8d0 000003e8 3ffee874
3fffff40: 3fffdad0 3ffee8d0 3fffff88 4020636e
3fffff50: 40207135 000003e8 3ffee7ec 40206384
3fffff60: 3fffdad0 00000000 3ffee7ec 40201174
3fffff70: 3fffdad0 3ffee790 3ffee6b8 402049a8
3fffff80: 3fffdad0 3ffee790 3ffee7ec 402010b9
3fffff90: 40208ed8 a7bd1f00 feefeffe 80efeffe
3fffffa0: feefeffe 00000000 3ffee834 40206c90
3fffffb0: feefeffe feefeffe 3ffe8538 40100bfd
<<<stack<<<

I would like to turn off and on a led with telegram bot, so this is the code (it's not complete but it crashes so i cannot continue coding):

#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <TelegramBot.h>

int led = 2;
 
const char* ssid = "MySSID";
const char* password = "MyWPAkey";
const char BotToken[] = "mybot:token";

WiFiClientSecure net_ssl;
TelegramBot bot (BotToken, net_ssl);


void setup() {
  pinMode(pin, OUTPUT);
  Serial.begin(9600);
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
     delay(500);
     Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
  Serial.println(WiFi.localIP());
  bot.begin(); 
}




void loop() 
{  
digitalWrite(led, HIGH);   // turn the LED off 
  Serial.println("Led OFF");
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED on 
 Serial.println("Led ON");
  delay(1000);               // wait for a second
 message m = bot.getUpdates(); // Read new messages
//it wait a lot after Led On and then errors
//here i want to continue coding but i cannot because it crashes so it doesnt worth it.
delay(1000);

}

i m using nodeMCU v3, with ESP8266MOD chip on it, i tried with 8v input and 2200uF big capacitor, it crashes. i tried blinking sketch with serial.println inside, it doesnt crashes. seems to crash only when using message m = bot.getUpdates(); or other using BOT library. i also tried to upgrade firmware but i don't know if i chose the last or correct one. i have another NodeMCU v3 board, i tried (without upgrading firmware) and it still crashes. i don t know what else to try to do.

it connects to wifi at
WiFi connected
172.31.189.167

it's correct ip of my net. i also tried to change network, it still crashes: it's not a wifi problem but (i think) a bot telegram library problem.

Can someone please help me?
Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions