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

沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...