NodeMCU WiFI, Andriod 12, blynk.cloud:80, blynk version 1.0.1
// This function is called every time the Virtual Pin 0 state changes
// Set incoming value from pin V0 to a variable
int value = param.asInt();
// Update state
// This function is called every time the device is connected to the Blynk.Cloud
// Change Web Link Button message to "Congratulations!"
Blynk.setProperty(V3, "offImageUrl", "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations.png");
Blynk.setProperty(V3, "onImageUrl", "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations_pressed.png");
Blynk.setProperty(V3, "url", "https://docs.blynk.io/en/getting-started/what-do-i-need-to-blynk/how-quickstart-device-was-made");
// This function sends Arduino's uptime every second to Virtual Pin 2.
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V2, millis() / 1000);
// Debug console
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
// Setup a function to be called every second
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
Hello. This is the code from the blink email.
Why is there a call to Blynk.Virtualwrite(V1, value) in the BLINK_WRITE(V0) handler?
There is one button in the Dashboard on the web, just like in the android application. But if you add new elements, they do not appear in the web dashboard. Why?
If you add several buttons, they are all tied to the same virtual pin, which cannot be changed anywhere. Why can’t I change my virtual PIN? On one virtual port, the buttons conflict with each other.
Sometimes the board does not respond to button presses in the application. Although it works stably on the web.
The description for the zergba module does not match the current settings. There are no split and merge modes. What is the difference between switch control and switch value modes? Nothing is described in the help. Min/max values are always 0/1.
It’s actually more user-friendly when you get used to it. Previously, you had to remember which virtual pin you’d use for a certain piece of data, and it was very easy to pick the wrong one and have to spend time figuring-out the problem.
Now you can give the datastreams sensible names and it’s easier to ensure that you choose the correct one.