[SOLVED] Exception with Bridge two ESP8266

Hi!

I found an exception when connect two ESP8266 with WidgetBridge…

  • ESP8266_Board_1 → Receive data from Board_2
  • ESP8266_Board_2 → Send data to Board_1

Board2 Code:
WidgetBridge bridge2(V31);
.
bridge2.setAuthToken(“XXXXXX1”);
.
bridge2.virtualWrite(V21, t);
.

  • Exception in Board_1

vw2111.0000
[107598] <msg 20,3,8
<vw2111
[107749]
Exception (28):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000000b depc=0x00000000

ctx: cont
sp: 3ffefd50 end: 3fff0170 offset: 01a0

stack>>>
3ffefef0: 3ffeff30 40106b38 3ffefff0 3ffeef48
3ffeff00: 4020f2d2 3fff0020 3031ff76 39343737
3ffeff10: 00000008 0000000b 00000000 3ffefff0
3ffeff20: 3fff0000 40106b60 3fff01bc 3ffe8558
3ffeff30: 00007776 00000007 3ffeff60 00000007
3ffeff40: 3fff01bc 00000001 4022f1c2 40205b55
3ffeff50: 00007776 3ffe8558 3fff01bc 402023b5
3ffeff60: 20746f47 61762061 3a65756c ffffff20
3ffeff70: 32007776 31310031 3ffe8700 3fff006f
3ffeff80: 3fff01bc 00000001 3ffe880e 40205b08
3ffeff90: 3fff01bc 0000000b 3ffefffb 3fff00b0
3ffeffa0: 00000000 0000000c 3fff01bc 402050e5
3ffeffb0: 3fff00b6 0000000b 0ccccccc 00000009
3ffeffc0: 00000019 00000001 00000000 3fff00b9
3ffeffd0: 3fff00b3 00000015 0ccccccc 00000007
3ffeffe0: 3fff0000 3ffefff0 00000004 4020101c
3ffefff0: 3fff00b8 0000000b 00000019 3fff00b9
3fff0000: 00000001 00000000 3ffeef48 4020102c
3fff0010: 00007776 3fff00bd 3fff0050 40202988
3fff0020: 0000000b 3fff1398 00000001 4020102c
3fff0030: ffffffff 3fff00bd 00000015 40203144
3fff0040: 3fff01bc 00000001 3ffe880e 40205b08
3fff0050: 3fff00b6 00000007 00000007 3fff00b0
3fff0060: 3fff0115 3fff00b0 3fff01bc 3fff00b6
3fff0070: 3ffeef48 0000000d 3fff00bc 40205b08
3fff0080: 00000000 0000000f 3ffeef48 3fff00b0
3fff0090: 3fff01bc 3fff00b0 3ffeef48 402033c5
3fff00a0: 00000000 00000005 3ffeef48 4020325b
3fff00b0: 32007776 31310031 3030302e 00000030
3fff00c0: 0d00030f 00000000 3ffef150 3ffeef68
3fff00d0: 0000000d 00000001 40204878 3ffef150
3fff00e0: 00000000 3fff0040 3ffeef48 00000001
3fff00f0: 00000000 3ffeef68 3ffeef48 402035bc
3fff0100: 3ffeee30 00000000 3ffeef34 3ffef144
3fff0110: 3ffeee30 7ff80000 3ffeef48 40202b14
3fff0120: 3ffeef68 7fc00000 7fc00000 3ffef144
3fff0130: 00000000 00000000 00000016 3ffef144
3fff0140: 3fffdc20 00000000 3ffef13c 402036c3
3fff0150: 3fffdc20 00000000 3ffef13c 402048c1
3fff0160: 00000000 00000000 3ffef150 40100114
<<<stack<<<

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

It’s very hard to tell, and you didn’t provide the code. Are you sure the code is OK?

SOLVED, attached code from other users…

Thanks!
Congratulations, Blynk is amazing…

2xESP8266

ESP_1 - When V7 is pressed in ESP_1 send value to ESP_2 V0, a LED in ESP_2 Blynk - Works fine.
ESP_2 - V2 value from DHT22 is send yo ESP_1 V21.

ESP1 Code:
-#define BLYNK_DEBUG
-#define BLYNK_PRINT Serial
-#include <ESP8266WiFi.h>
-#include <BlynkSimpleEsp8266.h>

char auth[] = “ESP_1”;

WidgetBridge bridge(V30);

void setup()
{
Serial.begin(115200); // See the connection status in Serial Monitor

Blynk.begin(auth, “LALALA”, “XXXX”, IPAddress(1,1,1,123));

while (Blynk.connect() == false) {
}

BLYNK_CONNECTED() {
bridge.setAuthToken(“ESP_2_TOKEN”);
}

//V7 Botón
BLYNK_WRITE(V7) {
int x = param.asInt(); // 123
BLYNK_LOG(“Boton: %s”, param.asStr());
switch (x) {
case 0:
bridge.virtualWrite(V0, 0);
}
break;
case 1:
bridge.virtualWrite(V0, 1);
break;
default:
break;
}
}

// Temperatura
BLYNK_WRITE(V21) {//triggered when virtual write came from device A or from app.
int x = param.asInt(); // 123
Blynk.virtualWrite(V21, x);
}

// Humedad
BLYNK_WRITE(V22) {//triggered when virtual write came from device A or from app.
int x = param.asInt(); // 123
Blynk.virtualWrite(V22, x);
}

void loop()
{
Blynk.run();
timer.run();
}

ESP2 Code:
-#define BLYNK_DEBUG
-#define BLYNK_PRINT Serial
-#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
-#include <ESP8266WiFi.h>
-#include <BlynkSimpleEsp8266.h>
-#include <SimpleTimer.h>
-#include <DHT.h>

-#define DHTPIN 4 //pin gpio D04 in sensor
-#define DHTTYPE DHT22 // DHT 22 Change this if you have a DHT11
DHT dht(DHTPIN, DHTTYPE);

// Auth Token in the Blynk App.
char auth[] = “ESP_2_TOKEN”;

SimpleTimer timer;
WidgetBridge bridge(V1);

void setup()
{
pinMode(13, OUTPUT);
dht.begin();
Serial.begin(115200);
Blynk.begin(auth, “A”, “LALALA”, IPAddress(1,1,1,123));

while (Blynk.connect() == false) {
}

timer.setInterval(10000L, sendData);

}

BLYNK_CONNECTED() {
bridge.setAuthToken(“ESP_1_TOKEN”);
}

void sendData()
{
float t = dht.readTemperature();
float h = dht.readHumidity();

Blynk.virtualWrite(V2, t); //Valor Temperatura
Blynk.virtualWrite(V3, h); //Valor Humedad

bridge.virtualWrite(V21, t);
bridge.virtualWrite(V22, h);

}

void loop()
{
Blynk.run();
timer.run();
}

BLYNK_WRITE(V0) {
int x = param.asInt(); // 123
BLYNK_LOG(“Rele Activado: %s”, param.asStr());
switch (x) {
case 0:
Blynk.virtualWrite(V0, 0);
digitalWrite(13, LOW);
break;
case 1:
Blynk.virtualWrite(V0, 1);
digitalWrite(13, HIGH);
break;
default:
break;
}
}