hadif azli
/
TEST123
BLYNK TEST
Diff: WiFiBlynk.h
- Revision:
- 0:d8f4c441e032
- Child:
- 2:6cd3b0947188
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WiFiBlynk.h Fri Jun 10 15:20:20 2016 +0000 @@ -0,0 +1,34 @@ +#if 0 +#include <ESP8266_HardSer.h> +#include <BlynkSimpleShieldEsp8266_HardSer.h> +#include <SimpleTimer.h> + +// Set ESP8266 Serial object +#define EspSerial Serial1 + +ESP8266 wifi(EspSerial); + +SimpleTimer temHumtimer; + +void senTempHumi() +{ + Blynk.virtualWrite(V2, sensor_tem); + Blynk.virtualWrite(V3, sensor_hum); +} + +BLYNK_READ(V4) +{ + Blynk.virtualWrite(V4, sensor_light); +} +BLYNK_READ(V5) +{ + Blynk.virtualWrite(V5, Sensor_etoh); + //BLYNK_PRINT.println(Sensor_etoh); +} + +BLYNK_READ(V6) +{ + Blynk.virtualWrite(V6, sensorPM25); + //BLYNK_PRINT.println(sensorPM25); +} +#endif \ No newline at end of file