Hi. I have RobotDyn WIFI D1 R2. I have Error with connect to server. First Connection work, but only first. Next are Login Timeout Error. This is my Code
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "MYTOKEN"; //insert here your token generated by Blynk
float temp;
int tempPin = 17; // ADC pin
SimpleTimer timer;
void setup()
{
Serial.begin(9600); // See the connection status in Serial Monitor
Blynk.begin(auth, "MY SSID", "MYPASS"); //insert here your SSID and password
// Setup a function to be called every second
timer.setInterval(5000L, sendUptime);
}
// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void sendUptime()
{
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(10, temp); // virtual pin 10
}
void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
// delay(1000);
temp = analogRead(tempPin);
temp = temp * 0.09765625; // costance (1/1024*100)
}