Confirming data received by Blynk

When I send data to Blynk, like “Blynk.virtualWrite”, is there a flag or variable set that the data was received and stored? I am using WIFI but when the device is on the person WIFI might not always be available.

Thanks

No, there is no confirmation.
You could do a Blynk.syncVirtual to retrieve the current value from the server and compare the two.

This doesn’t make much sense though…

You’d be better checking if the device is connected to Blynk/WiFi

Pete.

Pete have been awesome with quick answers on the weekend.

How about I run this code?

void checkBlynkStatus() { // call to check if blynk connected

bool isconnected = Blynk.connected();

if (isconnected == true) {

//Now go ahead and send data.

@DougLeppard when you post code to the forum you need to add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

TBH, your code means nothing without an understanding of how you are managing the WiFi and Blynk connectivity and what re-connection routines you have in place.

Pete.

Pete.