Doubt about how to use Time Input Widget and Numeric Input

Read this…

This one, while still undocumented, is a basic value parameter command…

EG. Input widget set to V0

BLYNK_WRITE(V0)
{   
  int value = param.asInt(); // Get value as integer... or...
  // float value = param.asFloat(); // Get value as float, if using decimals.
  Serial.print(" The value is: ");
  Serial.println(value);
}

If you want to use the variable “value” outside of this function, then set it up as a global variable…

Note: The widget itself has multiple input options, an incremental or decremental value step (the value adjustable in the settings) or a direct value input.

1 Like