Hi, hope someone can assist, I’ve been struggling for quite a while and just cannot find the problem or what I’m missing.
The serial output I get:
[19] Blynk v0.3.2-beta
[520] Connecting to KogmanKeisie
[3741] IP: +CIFSR:STAIP,“192.168.0.117”
+CIFSR:STAMAC,“18:fe:34:da:8a:07”
OK
[3790] Connected to WiFi …then nothing else
Hereafter I go to the app and try to connect but I only get the message “Arduino UNO is offline” all the time.
I checked and I can succesfully ping to the ESP on our network so it’s definitely successfully connected.
Here is the code, I’m using the Blynk ESP8266 Shield via Software Serial example (took out my SSID, password and Blynk auth):
//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_SoftSer.h>
#include <BlynkSimpleShieldEsp8266_SoftSer.h>
// Set ESP8266 Serial object
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
ESP8266 wifi(EspSerial);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "***";
void setup()
{
// Set console baud rate
Serial.begin(9600);
delay(10);
// Set ESP8266 baud rate
// 9600 is recommended for Software Serial
EspSerial.begin(9600);
delay(10);
Blynk.begin(auth, wifi, "***", "***");
}
void loop()
{
Blynk.run();
}
Have you set your ESP to 9600 baud? I know Blynk says it’s connected to the wifi, but it may be something to check by directly attaching the ESP to a serial port. Mind the voltage though!
I was also wondering, do I need to forward specific ports on my router for Blynk to be able to communicate with the ESP? In this case, which ports and what protocol?
Using the Blynk cloud. Will it be necessary to forward port 8443, 8442. 8441 on my adsl router if I just want to connect app to ESP connected to internet via our wifi?
I’ve tried 0.3.1 and 0.3.0, no difference in results.
I can successfully ping from my pc to 192.168.0.117 (the ESP ip)
When I try to connect from app I still get “Arduino UNO is offline”…
Just to confirm connections between ESP and UNO:
ESP Rx - UNO Tx (D3)
ESP Tx - UNO Rx (D2)
ESP GND - UNO GND
and then also
ESP VCC & CH_PD - 3.3V external 700mA power supply
ESP GND - external power supply GND
not connected on ESP:
GPIO 0, GPIO 2 and RST
ESP red led on
ESP blue led flickers now and then
Baud rate 9600 is set on ESP and I did test with AT commands
Running out of ideas…
Is their any other way to test?
Perhaps a sketch that someone can share?