Reboot is not working

Hello,
I try to reboot my device, but nothing happens.



Not working with ESP8266 or ESP32.
Any idea?

Works for me…

>[396] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on ESP8266

[398] --------------------------
[401] Product:  TestBed
[403] Firmware: 0.1.0 (build Jan 26 2022 10:44:17)
[408] Token:    ...JoWz
[410] Device:   ESP8266 @ 80MHz
[413] MAC:      DC:4F:22:57:01:64
[416] Flash:    16384K
[418] ESP core: 3.0.2
[420] ESP SDK:  2.2.2-dev(38a443e)
[423] Boot Ver: 31
[425] Boot Mode:1
[426] FW info:  467936/1626112, MD5:5405cf08ca61bed6ceed4046c3667d7e
[633] Free mem: 31272
[633] --------------------------
[634] INIT => CONNECTING_NET
[635] Connecting to WiFi: REDACTED
[4496] Using Dynamic IP: 192.168.1.51
[4496] CONNECTING_NET => CONNECTING_CLOUD
[4608] Current time: Wed Jan 26 10:46:42 2022
[4608] Connecting to blynk.cloud:443
[5561] Ready (ping: 12ms).
[5639] CONNECTING_CLOUD => RUNNING

{"status":"OK","msg":"resetting device"}  <<<<< This was the Reboot command, restart follows...

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v000723e0
~ld

>[402] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on ESP8266

[404] --------------------------
[407] Product:  TestBed
[409] Firmware: 0.1.0 (build Jan 26 2022 10:44:17)
[414] Token:    ...JoWz
[416] Device:   ESP8266 @ 80MHz
[419] MAC:      DC:4F:22:57:01:64
[422] Flash:    16384K
[424] ESP core: 3.0.2
[426] ESP SDK:  2.2.2-dev(38a443e)
[429] Boot Ver: 31
[431] Boot Mode:1
[432] FW info:  467936/1626112, MD5:5405cf08ca61bed6ceed4046c3667d7e
[640] Free mem: 31272
[640] --------------------------
[640] INIT => CONNECTING_NET
[641] Connecting to WiFi: REDACTED
[4512] Using Dynamic IP: 192.168.1.51
[4512] CONNECTING_NET => CONNECTING_CLOUD
[4624] Current time: Wed Jan 26 10:47:14 2022
[4624] Connecting to blynk.cloud:443
[5568] Ready (ping: 11ms).
[5645] CONNECTING_CLOUD => RUNNING

It looks like it’s the Console.h tab that handles the reboot command from the web console. Does the first part of your Console.h tab look like this…

#include <Blynk/BlynkConsole.h>

BlynkConsole    edgentConsole;

void console_init()
{
  edgentConsole.init(BLYNK_PRINT);

  edgentConsole.print("\n>");

  edgentConsole.addCommand("reboot", []() {
    edgentConsole.print(R"json({"status":"OK","msg":"resetting device"})json" "\n");
    delay(100);
    restartMCU();
  });

Pete.

1 Like

Thanks.
I have no file named ’ BlynkConsole.h’
I have
v1.0.1 on ESP8266
I think I have not done the correct update.


Can you tell me the better way to update with the good files, please?

Download the files from here…

Pete.

Thank you,
I updated all files and now it’s working.
My fault is from my last Blynk update.

1 Like