I currently use BlynkEdgent to send linenotify, but POWER ON only sends it once. BlynkEdgent does not continue to send LINENOTIFY. Where should I fix it? Thank you.
// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "XXXXXXXXXXXX"
#define BLYNK_DEVICE_NAME "GARAGE"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG
#define APP_DEBUG
// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
//#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD
#define USE_WEMOS_D1_MINI
#define LINE_TOKEN "XXXXXXXXXXXX"
#include "BlynkEdgent.h"
BlynkTimer timer;
void linenotify()
{
String alarm="TEST-TEST";
LINE.setToken(LINE_TOKEN);
LINE.notify("\n" + alarm );
}
void setup()
{
Serial.begin(115200);
delay(100);
timer.setInterval(5000L, linenotify);
BlynkEdgent.begin();
}
void loop() {
BlynkEdgent.run();
timer.run();
}