본문 바로가기
임베디드/Arduino

esp8266 blynk

by sj0020 2020. 9. 16.
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}

 

 

보드, 포트 선택 - 화면 오른쪽 하단 확인 

 

 

 

'임베디드 > Arduino' 카테고리의 다른 글

JMOD-BT-01 블루투스 모듈 / dht11 / MIT App Inventor  (0) 2020.09.16
blynk dht11  (0) 2020.09.16
아두이노 복습..하는...날 . ...........  (0) 2020.09.15
arduino pin map  (0) 2020.09.15
CLCD16x2  (0) 2020.09.10