Hey there,
I’m having issues with my esp8266(01) and my Wemos D1 board.
I downloaded the latest library from gitub (0.5.0) and installed it in the arduino ide.
Then I copied the example sketch for the esp8266 from the blynk code generator and pasted it in the arduino ide. After pasting my ssid, password and auth token, I uploaded the sketch. I didn’t change the example sketch furthermore. The esp8266 connects to the blynk Server succesfully, but “crashes” after that and disconnects.
This goes on and on…
Output from the UART:
To check wether my hardware is faulty, I uploaded the Advancedwebserver example sketch from the esp8266 library Sketch
and the esp8266 connected successfully to my router and the connection is very stable.
Arduino IDE: 1.8.3
Blynk lib: 0.5.0
Board settings: Generic ESP8266 Module / Wemos D1
Used Boards: ESP8266-01 and Wemos D1
I’m currently working with the esp8266-01 module, but I also tried it my Wemos D1 board. I think they have the same issue.
The esp8266-01 module is on a breadboard hooked to my bench power supply at 3,3V. I added some caps (100nF 10nF and 2,2µF) in parallel to stabilize the voltage.
This is the sketch I have used:
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
It is the old Wemos D1 in the arduino uno form factor.
But I downgraded the blynk library to 0.4.4 and now it is working on my Wemos D1 and the breadboard Esp8266-01, weird.
Not entirely… I have found up to 0.4.8 very stable, but 0.5.0 has some unique features that seem to both help and hinder Perhaps try the next version when it comes out.
Well, a little Googling later… and I am still bewildered But I guess since I haven’t had any notable crashes with my ESP’s… I will tiptoe away and hope it doesn’t find me