Open Gun-neR opened 5 years ago
Yup, there is a problem, because I'm using device-API (and the server recognizes me as a device). I will try to dig in into blynk protocol to resolve this problem. Currently this is the biggest problem of this client :(
No problem... I am not being nitpicky, I had just noticed that no one else seems to be posting anything, so I figured I can beta test for you :P
I did not find any official API method to subscribe for pin values changes, so I made temporary solution with Sync
button (it uses SYNC_HW under the hood) and AutoSync timer to do sync operations automatically.
1 second+ refresh is perfect for my typical uses. Looking great!
One minor glitch I noticed after the first second of operation (regardless of set sync time), the UTF-8 image gets garbled. Sync related?
I'll check it. First time I get values from a project object, and when syncing - it comes from websockets in a binnary format, may be while I convert it - something goes wrong
Seems like it is blynk-server problem. First time i created this widget - it was OK, but today I see the problem and wrong data comes from server :\
Hmm, originally I was using code to generate the symbol, which worked for the first display, just not after... It is on a 1 second timer.
Blynk.virtualWrite(V7, String(WiFi.RSSI()) + String(" \xF0\x9F\x93\xB6"));
Then I changed it to the same emoticon, but picked from the phone and placed in the Labeled Display Widget, and that works fine every second.
Blynk.virtualWrite(V7, String(WiFi.RSSI()));
Go figure :D
Seems like it is a floating problem :\
NO device pushed action is automatically registered in this Web Client, I must refresh web page to see changes in display widgets from
virtualWrite()
setProperty()
, etc.