NodeMCU v.3.0 + WiFi
IOS 12.1.4
Blynk server.
v0.6.1
Notifications from the Notification widget stopped coming. The device worked for several years without problems. Recently I noticed that notifications from several devices stopped coming. I began to check on the test board the simple sketch from the examples for Blynk.notify( “Test notify!” ) and it also does not work. What happened to the Notifications? Help pls!
BR,
Artem.
This is test sketch:
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
void notifyOnButtonPress()
{
// Invert state, since button is "Active LOW"
int isButtonPressed = !digitalRead(2);
if (isButtonPressed) {
Serial.println("Button is pressed.");
// Note:
// We allow 1 notification per 5 seconds for now.
Blynk.notify("Test button is pressed!");
}
}
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth);
// Setup notification button on pin 2
pinMode(2, INPUT_PULLUP);
// Attach pin 2 interrupt to our handler
attachInterrupt(digitalPinToInterrupt(2), notifyOnButtonPress, CHANGE);
}
void loop()
{
Blynk.run();
}