Im using Ardunio with ESP8266 and following this tutorial 1.3 Connecting the R3 board to Blynk — SunFounder 3in1 Kit documentation
Code:
#define BLYNK_TEMPLATE_ID "(these are set to the right thing)"
#define BLYNK_TEMPLATE_NAME "(these are set to the right thing)"
#define BLYNK_AUTH_TOKEN "(these are set to the right thing)"
// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
char auth[] = BLYNK_AUTH_TOKEN;
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "(these are set to the right thing)";
char pass[] = "(these are set to the right thing)";
// Hardware Serial on Mega, Leonardo, Micro...
// #define EspSerial Serial1
// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200
ESP8266 wifi(&EspSerial);
void setup()
{
// Debug console
Serial.begin(115200);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
// You can also specify server:
Blynk.begin(auth, wifi, ssid, pass);
//Blynk.begin(auth, wifi, 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!
}
In the Serial Monitor it only shows “Connecting to (my Wifi)”
If anyone can help i would really appreciate it!