Hi there.
can somebody help me on how can I connect to the Blynk with this Cytron Shield.
I always got error command comflicting with each other.
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "your auth token";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "your ssid";
char pass[] = "your pass";
// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1
// Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(10, 11); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
void setup()
{
// Set console baud rate
Serial.begin(9600);
delay(10);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
EspSerial.println("AT+RST"); <-- add these 4 lines here
delay(1000);
while(EspSerial.available())
EspSerial.read();
Blynk.begin(auth, wifi, ssid, pass);
}
void loop()
{
Blynk.run();
}
Return to Getting Started - IoT
Users browsing this forum: No registered users and 8 guests