Most of the time blynk cloud server down in these days…any reason please
There’s been no downtime on any of the cloud servers for the past 7 days…
My guess is that you’re either trying to use SSL, which is no longer supported, or you are using one of the Blynk beta libraries, which aren’t intended for use with the current release of Blynk.
Pete.
Thanks for the responding in time,
I am in touch with this App since many years, sometime facing problem of disconnection if using maximum number of widgets like led, value display label, graphs, buttons etc.
when i removed all of them except label and graph to display temperature and humidity value then works fine… but from yesterday facing problem of update Temp and Humidity graph as well as button function also not responding.
Please guide me
What version of the Blynk library are you using?
What hardware are you using?
What connection method are you using?
What does your serial monitor show when a disconnection occurs?
Pete.
as i checked now, version is 0.4.8
I am using esp8266
when using number of widgets then showing an error which is called flood error and the same time disconnection from blynk cloud
Wow! That’s old.
You should be using 0.6.1
Flood Errors are caused by bad coding. You probably have Blynk.virtualWrites in your void loop.
Pete.
yes, I already updated from older version to new one.
In the loop, i only mentioned
Blynk.run();
timer.run();
timer1.run();
I have about 10 variables and want to display them over blynk app, please guide me the best and reliable solution…
Regards
Well, first of all, you don’t need two separate timer objects, unless you have more than 16 timers.
You can do…
timer.setInterval(1000L, function_1);
timer.setInterval(10000L, function_2);
timer.setInterval(60000L, function_3);
I’d suggest you post your full code - correctly formatted with triple backticks.
Triple backticks look like this:
```
Unformatted code will be deleted!
You should also provide details of your hardware, current library version, and an overview of what your code is meant to achieve.
Pete.
Thanks for your valuable support, please find below complete code for your reference and correction/suggestion if any
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
#include "Arduino.h"
#include "PCF8574.h"
#define BLYNK_GREEN "#0af286"
#define BLYNK_BLUE "#04C0F8"
#define BLYNK_YELLOW "#ED9D00"
#define BLYNK_RED "#f20a32"
#define BLYNK_DARK_BLUE "#5F7CD8"
PCF8574 pcf8574(0x20);
// for page of incubatorMoniterig
char auth[] = "82a0b90f623541bc861d528e8d98538f"; //home_uno_ESP866
// for page of HomeUno_ESP866
//char auth[] = "25b72787bee84f798d09e881815d4693"; //home_uno_ESP866
// Your WiFi credentials.
// Set password to "" for open networks.
//char ssid[] = "ZONG_BACKUP";
//char pass[] = "alawan111";
char ssid[] = "CL_555"; //"PTCL-BB";
char pass[] = "12345678";
BlynkTimer timer;
const int btnPin = D8;
#define MainPin D5
#define BackupPin D6
#define DHTPIN D3
float t, tC1=38.2;
int h;
int HeaterPinState = LOW;
int btnState = HIGH;
#define DHTTYPE DHT21
DHT dht(DHTPIN, DHTTYPE);
WidgetLED MainON(V9);
WidgetLED Heater1(V10);
WidgetLED Heater2(V11);
WidgetLED Motor(V12);
WidgetLED Fan(V13);
WidgetLED Power(V14);
void checkPhysicalButton();
// Every time we connect to the cloud...
BLYNK_CONNECTED()
{
// Request the latest state from the server
Blynk.syncVirtual(V0);
// Alternatively, you could override server state using:
//Blynk.virtualWrite(V0, HeaterPinState);
}
// When App button is pushed - switch the state
BLYNK_WRITE(V0)
{
HeaterPinState = param.asInt();
digitalWrite(MainPin, HeaterPinState);
}
void checkPhysicalButton()
{
if (digitalRead(btnPin) == LOW)
{
// btnState is used to avoid sequential toggles
if (btnState != LOW) {
HeaterPinState = !HeaterPinState;
//digitalWrite(MainPin, HeaterPinState);
Blynk.virtualWrite(V0, HeaterPinState);
}
btnState = LOW;
} else
{
btnState = HIGH;
}
}
void setup()
{
Serial.begin(115200);
dht.begin();
pcf8574.begin();
Blynk.begin(auth, ssid, pass);
pinMode(MainPin, OUTPUT);
pinMode(BackupPin, OUTPUT);
pinMode(btnPin, INPUT_PULLUP);
pcf8574.pinMode(P0, INPUT);
pcf8574.pinMode(P1, INPUT);
pcf8574.pinMode(P2, INPUT);
pcf8574.pinMode(P3, INPUT);
pcf8574.pinMode(P4, INPUT);
pcf8574.digitalWrite(P0, HIGH);
pcf8574.digitalWrite(P1, HIGH);
pcf8574.digitalWrite(P2, HIGH);
pcf8574.digitalWrite(P3, HIGH);
pcf8574.digitalWrite(P4, HIGH);
timer.setInterval(1000L, sendSensor);
timer.setInterval(1000L, FeedBack);
timer.setInterval(100L, checkPhysicalButton);
}
void loop()
{
Blynk.run();
timer.run();
}
void sendSensor()
{
h = dht.readHumidity();
t = dht.readTemperature();
int hV = 6;
int h1 = h+hV;
Blynk.virtualWrite(V5, t);
Blynk.virtualWrite(V6, h1);
//===================================
if((btnState == HIGH) || (t<=37.5))
{
digitalWrite(BackupPin, LOW);
MainON.on();
MainON.setColor(BLYNK_RED);
}
else
if((btnState == LOW) || (t>=tC1))
{
digitalWrite(BackupPin, HIGH);
MainON.on();
MainON.setColor(BLYNK_GREEN);
}
}
void FeedBack()
{
if(pcf8574.digitalRead(P0)==LOW)
{
Serial.println("B");
Heater1.on();
Blynk.setProperty(V10, "color", "#f20a32");
}
else
{
Serial.println("b");
Heater1.on();
Blynk.setProperty(V10, "color", "#0af286");
}
//================================================
if(pcf8574.digitalRead(P1)==LOW)
{
//Serial.println("A");
Heater2.on();
Blynk.setProperty(V11, "color", "#f20a32");
}
else
{
Heater2.on();
Blynk.setProperty(V11, "color", "#0af286");
}
//===================================================
if(pcf8574.digitalRead(P2)==LOW)
{
//Serial.println("C");
Motor.on();
Blynk.setProperty(V12, "color", "#f20a32");
}
else
{
Motor.on();
Blynk.setProperty(V12, "color", "#0af286");
}
//================================================
if(pcf8574.digitalRead(P3)==LOW)
{
//Serial.println("D");
Fan.on();
Blynk.setProperty(V14, "color", "#0af286");
}
else
{
Fan.on();
Blynk.setProperty(V13, "color", "#0af286");
}
//===============================================
if(pcf8574.digitalRead(P4)==LOW)
{
//Serial.println("E");
Power.on();
Blynk.setProperty(V14, "color", "#0af286");
}
else
{
Power.on();
Blynk.setProperty(V14, "color", "#0af286");
}
//================================================
}