Hello ALL
Recently I changed to this release to let my Amazon Echo Dot work with Blynk.
NOW Everything is working fine with my Echo Dot.
The problem is only with Notification it stops working after I changed from release 2.3 to release 2.4-rc2.
Same happened with other sketches I compiled with release 2.4 .
I also have been running this release since shortly after its release on all my projects… no change. Besides, this is a ESP/espressif release, nothing to do with Blynk directly.
I agree, temporary block from spam protection sounds more like the issue… wait (don’t keep pushing) a day and see…
In the past I put my BLYNK_CONNECTED() function on the “Settings.h” page and it was ok but now I must have it on the main page and BEFORE/* Belkin WeMo emulation */ for Blynk.notify and Blynk.virtualWrite to work PLUS I must also add a DELAY > 300ms .
I am not a programmer and all this is strange for me !
if you can explain it will be great
#define BLYNK_PRINT Serial
#include <ArduinoOTA.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
//#include <SimpleTimer.h> // library for SimpleTimer
//#include <Arduino.h>
//#include <ESP8266WiFi.h>
#include "fauxmoESP.h"
#include "Settings.h"
#include "wifi_credentials.h"
#include "relay.h"
//#include "echo.h"
bool isFirstConnect = true;
BLYNK_CONNECTED() {
if (isFirstConnect) {
delay(400);
Blynk.syncAll();
Blynk.notify ("NODE_ECHO-DOT ---> #33 Faux2 STARTING!!!!");
delay(500);
Blynk.virtualWrite(vPIN_WIFI_SIGNAL, String("NODE_ECHO-DOT->#33 READY"));
Blynk.virtualWrite(vPIN_UP_TIME, String("-- "));
isFirstConnect = false;
}
}
BlynkTimer timer;
// SimpleTimer timer;
/* Belkin WeMo emulation */
fauxmoESP fauxmo;
/*--------------------------------Setup -----------------------------------------*/
void setup() {
WiFi.mode(WIFI_STA); // Set WIFI module to STA mode
Serial.begin(115200); // See the connection status in Serial Monitor
#ifdef LOCAL_SERVER
Blynk.begin(AUTH, WIFI_SSID, WIFI_PASS, LOCAL_SERVER);
#else
Blynk.begin(AUTH, WIFI_SSID, WIFI_PASS, Geo_DNS_SERVER);
#endif
while (Blynk.connect() == false) {}
ArduinoOTA.setHostname(OTA_HOSTNAME);
ArduinoOTA.begin();
another way to let my notify work is to put it in the setup() function
// Notify immediately on startup
Blynk.notify ("NODE_ECHO-DOT ---> #33 Faux2 STARTING!!!!");
Blynk.virtualWrite(vPIN_WIFI_SIGNAL, String("NODE_ECHO-DOT->#33 READY"));
Blynk.virtualWrite(vPIN_UP_TIME, String("-- "));
timer.setInterval(12000L, []() {
Blynk.virtualWrite(vPIN_WIFI_SIGNAL, String("Wifi = ") + map(WiFi.RSSI(), -105, -40, 0, 100) + String('%')+ String(" (") + WiFi.RSSI() + String("dB)"));});
timer.setInterval(60000L, []() {
Blynk.virtualWrite(vPIN_UP_TIME, millis() / 60000);}); //send how many min from start to BLYNK Application.