BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Upload code to wifi shield

hello!
i have a project with Arduino UNO and ESP-12E ESP8266 UART WIFI Wireless Shield, i used example Blynk code:


#define BLYNK_PRINT Serial   
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

char auth[] = "mytoken";

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

// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial

//or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(0, 1); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

void setup()
{
  // Set console baud rate
  Serial.begin(9600);
  delay(10);
  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
}

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

but I don’t know this code should upload to Arduino, or wifi shield???
if upload to shield, what code will upload to arduino??? and vice versa ??
i have tried to read related topics, but i dont have new idea?
Please help me!
Thanks!

Hello, again… as per the forum policies… Searching this forum for keywords like Arduino, UNO, ESP as shield, AT, firmware, and so on would answer your questions :stuck_out_tongue_winking_eye:

The ESP with AT firmware is just a simple Serial to WiFi adapter… you program the Arduino and it communicates over that “shield” to the Blynk server.

Keep searching/reading for further details :wink:

http://help.blynk.cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware