I write some code to send some information to Blynk , like
void update()
{
if (Blynk.connected())
{
send to Blynk;
}
}
But from the begin, when hardware bootup, before reach line Blynk.begin(), I see hardware send data to Blynk via that function, is this normal? I think from begining, value of Blynk.connected() must be false?
void setup()
{
Blynk.begin(auth); // Here your Arduino connects to the Blynk Cloud.
while (Blynk.connect() == false) {
// do nothing but wait
}
}
void loop()
{
Blynk.run(); // All the Blynk Magic happens here...
}
then you just need to make a Blynk.virtualWrite(); call to “send data” to blynk.
I know that, but in my case, that function used to send data to Blynk called inside another function, something like
{
do sth;
update();
}```
function() called from setup(), before Blynk.connect(), normal logic in this time, hardware is not connected to server yet, but hardware still send data to Blynk, it's not a big problem, but I think that maybe an some kind of error