Before creating the topic
- Search forum for similar topics
- Check http://docs.blynk.cc and http://help.blynk.cc/
- Add details :
• Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
• Smartphone OS (iOS or Android) + version
• Blynk server or local server
• Blynk Library version
• Add your sketch code. Code should be formatted as example below.
Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#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[] = "xxxxxxxxxx143a69a5bd844bxxxxxxxx";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "VodafoneMobileWiFixxxxxxxxx";
char pass[] = "xxxxxxxxxxx";
String response = "";
char c ;
// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1
// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(4, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 19200
ESP8266 wifi(&EspSerial);
void setup()
{
// Debug console
Serial.begin(19200);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
// EspSerial.println();
// sendData("AT+RST", 3000, true);
// sendData("AT+UART?", 3000, true);
// sendData("AT+CIPSERVER?", 3000, true);
// sendData("AT+CIPSTATUS?", 3000, true);
// Blynk.begin(auth, wifi2, ssid, pass);
// wifi.setDHCP(1, 1, 1); //Enable dhcp in station mode and save in flash of esp8266
Blynk.config(wifi, auth, "blynk-cloud.com", 80);
// Blynk.config(wifi, auth, "45.55.96.146", 80);
//Blynk.config(auth);
//Blynk.begin(auth, wifi, ssid, pass);
// You can also specify server:
Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, wifi, ssid, pass, "45:55:96:146", 443);
Blynk.connect();
}
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!
}
Not the easiest create of topic! Does not show where I should type???
Hope this is correct!
I am really in a cul-de-sac, no idea what to do, have done hundreds of readings on Internet and this forum, no answer.
Android 8, Esp8266 2016, it recognizes latest commands.Tried on windows 10 and windows 7, same.
The code does not matter, because it works on another modem, a MicroTik Routerboard…
This is just an example sketch I am using to test, gives the same results.
I initially thought maybe too much code, then Arduino Uno acts strange, so tried less code.
At home it does not work on my Vodafone wifi modem, a Huawei: It connects to the wifi modem, but then prints message: Login timeout repeatedly.
I have tried hundreds of different things, think it is likely my modem.
What I do not understand, is, if it is the modem, how come I can connect to cloud server by sending individual commands to the Esp8266?
Got the IP back, 45.55.96.146
But how to fix?