Dear Sir,
I am a new member of Blynk. I have a problem the slider not send the setting value (100). Sometime it sent (0) that made my condition not working. Please help me. Sorry for my poor English
Thanks
The data from the control widgets are not stored/displayed on the graph. Only data sent from the hardware. If you still want to show it, you need to send the value back to the server.
@Dmitriy I think that’s what he’s doing here…
(I assume that the slider is on V1 and the graph on V9).
There are a couple of issues…
The Blynk.syncAll(); in void setup probably won’t have the desired effect unless it’s moved to BLYNK_CONNECTED() and of course it won’t work unless the virtual datastreams have the “Sync with latest server value every time device connects to the cloud” option enabled.
This means that the device may be starting with a zero value for Slider rather than the value set by the slider widget.
Adding some serial print statements into the sketch would help.
Sorry for late reply
I removed Blynk.syncAll(); and send serial print as you requested
but it will send (0) value for right now. this will be happen later.
Additional, I don’t understand the slider needs activated to send value (100) after uploading program. I think it might be automatiocally to send value.
I didn’t say that you should remove it, it needs to be placed in a function called BLYNK_CONNECTED()
Also, as I said earlier, it won’t work unless every datastream that you want to synchronise has the “Sync with latest server value every time device connects to the cloud” enabled (in the Advanced settings for the datastream).
BTW, please don’t paste screenshots of your serial monitor, copy and paste the data instead.