I have Blynk running with an ESP8266. Things were working good until about 2 weeks ago when I started trying to incorporate a push notification. Ever since, Blynk connects but can only toggle the LED on and off. It cannot see any of the virtual writes. Just to make sure it wasnât a hardware issue, I wrote the following program to turn on the LED when any input is on.(Every input works.) Any thoughts to resolve this?#include <ESP8266WiFi.h> //library for esp8266 wifi
#include <BlynkSimpleEsp8266.h> //library for Blynk ESP8266
char auth[] = "a91e3c27a81543c090a160785293a9b2"; //Blynk authorization
#define BLYNK_PRINT Serial
#define WIFI_SSID "NETGEAR16" // Home network name
#define WIFI_PASS "XXXXXXXXXX" // Home network password
#define ESP8266_LED 5 // for using output 5 LED
// voidsetup is the initialization routine
void setup()
{
pinMode(0, INPUT_PULLUP);
pinMode(ESP8266_LED, OUTPUT);
pinMode(4, INPUT_PULLUP);
pinMode(13,INPUT_PULLUP);
pinMode(12,INPUT_PULLUP);
Serial.begin(115200);
Blynk.begin(auth, WIFI_SSID, WIFI_PASS);
}
void loop()
{
Blynk.run();
// int sense = !digitalRead(5);
// if (sense == HIGH) {
// Blynk.virtualWrite(V1, HIGH);}
// else {
// Blynk.virtualWrite(V1, LOW);}
int wash = !digitalRead(0);
if (wash == HIGH) {
Blynk.virtualWrite(V2, HIGH);}
else {
Blynk.virtualWrite(V2, LOW);}
int rinse = !digitalRead(4);
if (rinse == HIGH) {
Blynk.virtualWrite(V3, HIGH);}
else {
Blynk.virtualWrite(V3, LOW);}
int spin = !digitalRead(13);
if (spin == HIGH) {
Blynk.virtualWrite(V4, HIGH);}
else {
Blynk.virtualWrite(V4, LOW);}
int complete = !digitalRead(12);
if (complete == HIGH) {
Blynk.virtualWrite(V5, HIGH);}
else {
Blynk.virtualWrite(V5, LOW);}
if((spin == HIGH)|| (wash == HIGH)|| (rinse == HIGH) || (complete == HIGH)) { // || (locked == HIGH)) {
digitalWrite(5, HIGH);}
else {
digitalWrite(5, LOW);}
}