I’m trying to set a range of 3 to 4.5 using step 0.1. In code, I’m doing a param.asFloat() on the assigned virtual channel and getting reasonable numbers. Note: iPhone application.
The values sent from the widget range from 3 to 4, not up to 4.5.After opening the control again, I see the upper range is being rounded down i.e. set to 4. Doesn’t this control allow decimal range values?
Thanks for getting back. I hope this functionality can be added.
The problem is the widget gets updated with the new value. For example, setting the range-> 3 to 5 allows getting values up to 4.5. Problem, the user can keep hitting the + and the values go out of the desired range as displayed on the widget.
Here is a piece of code to force the range but creates excess traffic (a hack)…You will also see the widget jump to 4.6 then get forced back to 4.5, not the preferred way. Bottom line, if the widget was created to allow precision control, the range values should accommodate that philosophy as well.
Its just a one-up app. to provide a remote method for resetting some equipment. I’m always looking for ways to spread the Blynk. Its nice to know you do have the abilty to publish native apps. for upward scale mobility.