Hello! I am attempting to send values to the Blynk app using V1. It connects momentarily and starts sending values, but then it returns a cmd error in debug.
I have decreased the baud rate of the ESP to 9600 from 115200 without success. I have also attempted running with BLYNK_DEBUG and BLYNK_PRINT commented out and the cmd error persists.
What causes the cmd error and the disconnection from the server? Any and all help would be greatly appreciated.
I am using the PLDuino which is an Arduino mega with a ESP8266.
It can be found here: https://www.digital-loggers.com/plchw.html
#define BLYNK_DEBUG
#define BLYNK_PRINT Serial
#define EspSerial Serial2
#define ESP8266_BAUD 9600
#include <BlynkSimpleShieldEsp8266.h>
#include <PLDuino.h>
char auth[] = "xxxxxx";
char ssid[] = "username";
char pass[] = "password";
int i;
BlynkTimer timer;
ESP8266 wifi(&EspSerial);
void setup() {
PLDuino::init();
PLDuino::enableESP();
Serial.begin(115200);
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
timer.setInterval(1007, testFunction);
}
void loop() {
Blynk.run();
timer.run();
}
void testFunction() {
Blynk.virtualWrite(V1, i);
i++;
}
Debug and Serial Information
19:27:40.210 -> [459]
19:27:40.210 -> ___ __ __
19:27:40.244 -> / _ )/ /_ _____ / /__
19:27:40.244 -> / _ / / // / _ \/ '_/
19:27:40.244 -> /____/_/\_, /_//_/_/\_\
19:27:40.244 -> /___/ v0.6.1 on Arduino Mega
19:27:40.244 ->
19:27:40.744 -> [967] Connecting to Wifi_Username
19:27:43.968 -> [4188] WIFI CONNECTED
19:27:43.968 -> WIFI GOT IP
19:27:43.968 -> AT version:1.5.0.0(Oct 24 2017 12:03:18)
19:27:43.968 -> SDK version:2.1.0(ace2d95)
19:27:43.968 -> compile time:Oct 24 2017 15:48:02
19:27:43.968 -> Bin version(Wroom 02):1.5.1
19:27:43.968 -> OK
19:27:47.213 -> [7436] +CIFSR:STAIP,"192.168.0.103"
19:27:47.213 -> +CIFSR:STAMAC,"5c:cf:7f:0e:9e:45"
19:27:47.213 -> [7436] Connected to WiFi
19:27:57.378 -> [17599] <[1D|00|01|00] Auth_Code \\was blynk auth code
19:27:57.554 -> [17780] >[00|00|01|00|C8]
19:27:57.554 -> [17780] Ready (ping: 28ms).
19:27:57.554 -> [17781] Free RAM: 6915
19:27:57.626 -> [17852] <[11|00|02|00]hver[00]0.6.1[00]h-beat[00]10[00]buff-in[00]1024[00]de
19:27:57.793 -> [18044] <v[00]Arduino Mega[00]cpu[00]ATmega2560[00]con[00]ESP826
19:27:57.974 -> [18191] <6[00]build[00]Oct 14 2019 19:14:37[00]
19:27:58.184 -> [18422] >[00|00|02|00|C8]
19:27:59.148 -> [19376] <[14|00|03|00|06]vw[00]1[00]0
19:28:09.199 -> [29422] Cmd error
19:29:12.656 -> [85992] <[1D|00|01|00] Auth_Code \\was blynk auth code
19:29:12.656 -> [86162] >[00|00|01|00|C8]
19:29:12.656 -> [86162] Ready (ping: 30ms).
19:29:12.656 -> [86163] Free RAM: 6915
19:29:12.656 -> [86234] <[11|00|02|00]hver[00]0.6.1[00]h-beat[00]10[00]buff-in[00]1024[00]de
19:29:12.656 -> [86419] <v[00]Arduino Mega[00]cpu[00]ATmega2560[00]con[00]ESP826
19:29:12.656 -> [86565] <6[00]build[00]Oct 14 2019 19:14:37[00]
19:29:12.656 -> [86750] >[00|00|02|00|C8]
19:29:12.656 -> [86850] <[14|00|03|00|06]vw[00]1[00]5
19:29:12.656 -> [87856] <[14|00|04|00|06]vw[00]1[00]6
19:29:12.656 -> [88860] <[14|00|05|00|06]vw[00]1[00]7
19:29:12.656 -> [89864] <[14|00|06|00|06]vw[00]1[00]8
19:29:12.656 -> [90880] <[14|00|07|00|06]vw[00]1[00]9
19:29:14.544 -> [91879] <[14|00|08|00|07]vw[00]1[00]10
19:29:14.544 -> [92886] <[14|00|09|00|07]vw[00]1[00]11
19:29:15.792 -> [93892] <[14|00|0A|00|07]vw[00]1[00]12
19:29:18.399 -> [94908] <[14|00|0B|00|07]vw[00]1[00]13
19:29:18.399 -> [95907] <[14|00|0C|00|07]vw[00]1[00]14
19:29:22.911 -> [96753] <[06|00|0D|00|00]
19:29:22.911 -> [96893] >[00|00|0D|00|C8]
19:29:22.911 -> [96963] <[14|00|0E|00|07]vw[00]1[00]15
19:29:22.911 -> [97928] <[14|00|0F|00|07]vw[00]1[00]16
19:29:32.944 -> [98936] <[14|00|10|00|07]vw[00]1[00]17
19:29:32.944 -> [99938] <[14|00|11|00|07]vw[00]1[00]18
19:29:32.944 -> [100942] <[14|00|12|00|07]vw[00]1[00]19
19:29:32.944 -> [101956] <[14|00|13|00|07]vw[00]1[00]20
19:29:32.944 -> [102957] <[14|00|14|00|07]vw[00]1[00]21
19:29:32.944 -> [113004] Cmd error