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!