gablau / node-red-contrib-blynk-iot

Blynk IoT / Blynk 2.0 library implementation for Node-RED using TLS
MIT License
17 stars 7 forks source link

Missing Node - Sync #4

Closed Peterkn2001 closed 1 year ago

Peterkn2001 commented 3 years ago

I've noticed that the Sync node is missing.

Blynk are changing the way that Blynk.syncAll() works in C++, and at the moment is doesn't work at all. See this for more info...

https://github.com/blynkkk/blynk_Issues/issues/139

However, Blynk,syncVirtual(vPin) does still work, and the ability to send a sync request on a single virtual pin would be extremely useful in Node-Red. Is it possible to add this back-in, without the "All" option (at least for now)?

Pete.

gablau commented 3 years ago

Yeah good! Fix in next release.

Peterkn2001 commented 3 years ago

Tested and working well in v0.2.0 The syncAll option doesn't work, but as I said earlier that is because of a change that Blynk introduced. The comma separated list of pins is a nice idea, and works well.

Many thanks!

Pete.

Peterkn2001 commented 3 years ago

UPDATE

Blynk have now released the "Sync with latest server value every time device connects to the cloud" option when defining datasteams (which as to be done in the web portal) Despite the strange name, this seems to mean "allow Blynk.syncAll to return the value of this pin"

image

With this option enabled, the syncAll option in Sync node does work for the datastreams that have this enabled, so the syncAll option should be retained.

One thing I noticed is that if you set the Sync node to one of the virtual pins, or a comma separated list of pins, then this remains in the node display when you then switch to syncAll...

image

Pete.

gablau commented 1 year ago

Fix on 1.0.0 release