2016年12月21日 星期三

ESP8266 ESP-12 Test Board & Blynk ---1


ESP8266  ESP-12 Test Board 與 Blynk App 應用 (1) 








/*
 *  This sketch demonstrates how to scan WiFi networks.
 *  The API is almost the same as with the WiFi Shield library,
 *  the most obvious difference being the different file you need to include:
 *  =================================================================
 *   Connect the USB-TTL to pc and upload sketch to ESP-12
 *   Note: GPIO0 should be LOW 
 *         CH_PD and RST should be HIGH for first time flashing the board

 *          GPIO0 should be LOW when uploading sketches
 *          Remember use a 3.3V USB-TTL 
 *          connect RX of board to TX of usb and TX of board to RX
 */

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "25f2404757efqqw4df5a01461efe56abed7";    //Blynk Auth Token : 25f2404757ef4df5a01461efe56abed7
char ssid[] = "74170287";
char pass[] = "24063173";


void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);   // auth, ssid, pass ;
}

void loop()
{
  Blynk.run();
}

沒有留言:

張貼留言

Node-Red --> MQTT --> Fuxa 開源碼網頁式圖控平台

Node-Red --> MQTT --> Fuxa      FUXA(一個開源的 Web HMI / SCADA 自動化監控軟體)的專案設定檔 。 這份設定檔完整定義了 HMI 監控畫面的 後端通訊(MQTT 連線、點位標籤) 與 前端網頁圖形介面(SVG 畫布...