Hi everyone , i try to programming Esp8266 with blynk 2.0 server to read temp. via DS18B20 ,
i get this error
Connected to WiFi
[5402] IP: 192.168.0.200
[5402]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v1.1.0 on ESP8266
#StandWithUkraine https://bit.ly/swua
[5528] Connecting to blynk.cloud:80
[11588] Login timeout
[11589] Connecting to blynk.cloud:80
i used this code
define BLYNK_TEMPLATE_ID "TMPLZ5pl2Ud3"
#define BLYNK_DEVICE_NAME "TempMonitor"
#define BLYNK_AUTH_TOKEN "UFmk0JGlmqynWSBenKSCZO_jCc6KXIXd"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp8266.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SimpleTimer.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature DS18B20(&oneWire);
float temp;
char ssid[] = "SAMSUNG Note9 WIFI";
char pass[] = "Kut19954321";
SimpleTimer timer;
char auth[] = BLYNK_AUTH_TOKEN;
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, getSendData);
DS18B20.begin();
}
void loop()
{
Blynk.run();
timer.run(); // Initiates BlynkTimer
}
void getSendData()
{
DS18B20.requestTemperatures();
temp = DS18B20.getTempCByIndex(0); // Celcius
Serial.println(temp);
Blynk.virtualWrite(V0, temp); //virtual pin V0
}
i was try, and i get the same error
Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8080);
all libraries and boards updated to last version
is the problem with my code ?
any help ?