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();
}

沒有留言:

張貼留言

  清除項目編譯快取 執行 flutter clean 重新取得套件依賴 執行 flutter pub get 完整重新編譯並執行 flutter run 1. 新增專案套件 (pubspec.yaml) 在 Flutter 專案根目錄下的 pubspec.yaml 中,新增 ...