hadif azli
/
TEST123
BLYNK TEST
WiFiBlynk.h
- Committer:
- kenobi
- Date:
- 2021-01-26
- Revision:
- 5:8a3cf73d7ed3
- Parent:
- 3:4cd9171ba989
File content as of revision 5:8a3cf73d7ed3:
#include "ESP8266_HardSer.h" #include "BlynkSimpleShieldEsp8266_HardSer.h" #include "SimpleTimer.h" Serial EspSerial(PA_9, PA_10);//tx, rx ESP8266 wifi(EspSerial); void notify() { Blynk.notify("Alert : DOOR OPENED"); } BLYNK_WRITE(V1) { int a = param.asInt(); if (a == 1) { Blynk.notify("BUKAK.."); } else { Blynk.notify("TUTUP..."); } }