BLYNK TEST

Dependencies:   mbed Blynk

Revision:
3:4cd9171ba989
Parent:
2:6cd3b0947188
Child:
5:8a3cf73d7ed3
--- a/WiFiBlynk.h	Wed Jun 15 03:08:40 2016 +0000
+++ b/WiFiBlynk.h	Thu Jun 16 08:08:30 2016 +0000
@@ -1,11 +1,10 @@
-#if 0
-#include <ESP8266_HardSer.h>
-#include <BlynkSimpleShieldEsp8266_HardSer.h>
-#include <SimpleTimer.h>
 
-// Set ESP8266 Serial object
-#define EspSerial Serial1
+#include "Config.h"
+#include "ESP8266_HardSer.h"
+#include "BlynkSimpleShieldEsp8266_HardSer.h"
+#include "SimpleTimer.h"
 
+Serial EspSerial(D3, D2);//tx, rx
 ESP8266 wifi(EspSerial);
 
 void senTempHumi()
@@ -28,5 +27,4 @@
 {
     Blynk.virtualWrite(V6, sensorPM25);
     //BLYNK_PRINT.println(sensorPM25);
-}
-#endif
\ No newline at end of file
+}
\ No newline at end of file