ESP8266 and WeMos D1 S2

Cayenne is a great platform, I am trying to use the ESP8266 with it,
My project work ok using the W5100 UNO interface.
When using the WeMos D1 S2 or the NodeMCU the WDT reset happens

ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld

this reset happens every 8-10 seconds, using NodeMCU LUA WiFi V1.0 ESP8266, it stops when the Cayenne.run(); is commented out , this also happens when using WeMos D1 S2, any help would be great

Are you using the latest Arduino IDE?
I haven’t tried native NodeMCU

Yes current IDE, 1.6.12
with NodeMCU LUA WiFi V1.0 ESP8266 and the WeMos D1s2 board.

This happens only when using the Cayenne library with simple blynk code below

#define CAYENNE_DEBUG         // Uncomment to show debug messages
#define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
#include "CayenneDefines.h"
#include "BlynkSimpleEsp8266.h"
#include "CayenneWiFiClient.h"
int i=0;
// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.

char token[] = "xxxxxxxx";
// Your network name and password.
char ssid[] = "xxx";
char password[] = "xxxxxxxxxxxxxxxxxxxxxxxxxx";

void setup()
{
Serial.begin(9600);
  Cayenne.begin(token, ssid, password);
}

void loop()
{

Cayenne.run();

//Serial.println (i);
//delay(3000);
//i++;
 
}

IP address from DHCP all good , WiFi good but WDT resets than all good till next reset 8-15sec.

No problem when using Blynk iot cloud , WDT only resets with Cayenne

…clean power in?

Power is good , other wifi projects run OK , might be something in the Cayenne or BlynkSimple library,
I can have other functions in the void loop, IP address always online , WDT resets when Cayenne.run(); is in … weird , I wonder if other users had any luck with the ESP8266 modues

Yes, I’ve been playing with Esp12-e modules.
Pretty robust IoT devices,
-and you can’t beat the price of $2.40.
I’ve been buying them 10 at a time.
Yesterday, I sent out (2) new PCB designs.
Now, the waiting begins…

try:

#define CAYENNE_DEBUG         // Uncomment to show debug messages
#define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
#include "CayenneDefines.h"
#include "BlynkSimpleEsp8266.h"
#include "CayenneWiFiClient.h"
int i=0;
// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.

char token[] = "xxxxxxxx";
// Your network name and password.
char ssid[] = "xxx";
char password[] = "xxxxxxxxxxxxxxxxxxxxxxxxxx";

void setup()
{
Serial.begin(9600);
  Cayenne.begin(token, ssid, password);
}

void loop()
{
ESP.wdtDisable();
Cayenne.run();

//Serial.println (i);
//delay(3000);
//i++;
 
}

If this works we’ll have to figure out what’s taking so long in cayenne.run();

WDT resets still happening with the “ESP.wdtDisable();” command line on both the WeMos D1 S2 and NodeMCU boards. The sketch uploads OK on both boards, no WDT resets when using non Cayenne dash boards.
Thanks for your help !!!
Cheers !!

Hi,

I am facing same issue as above, could not connect board and still says “Waiting for board to connect…”. WeMos D1 Mini board in Arduino IDE, baud rate 115200, update port & WIFI details in sketch.

ets Jan 8 2013,rst cause:4, boot mode:(3,5)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
ø

Vamsi

Mine got fixed 2 days ago after flashing WeMos.

1 Like

Can you let me know how exactly did you fixed this? I have a WeMos D1R2 that behaves exactly the same.

It only works OK with other IOT platforms not with Cayenne , I will wait till official support

Let me know if you can figure out the RTC resets issue

Cheers !!!

it works sometime and sometime it doesn’t.

try to add

#include “ESP8266WiFi.h”

test on Arduino 1.6.4 and WeMos D1 R2