Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Web Client not actively showing changes in display widgets, without browser refresh. #4

Open
Gun-neR opened this issue Feb 7, 2019 · 8 comments
Labels
bug Something isn't working

Comments

@Gun-neR
Copy link

Gun-neR commented Feb 7, 2019

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.

@avin
Copy link
Owner

avin commented Feb 7, 2019

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 :(

@avin avin added the bug Something isn't working label Feb 7, 2019
@Gun-neR
Copy link
Author

Gun-neR commented Feb 7, 2019

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

@avin
Copy link
Owner

avin commented Feb 7, 2019

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.

@Gun-neR
Copy link
Author

Gun-neR commented Feb 7, 2019

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?

screenshot 2019-02-07 12 31 17
screenshot 2019-02-07 12 31 17 2

@avin
Copy link
Owner

avin commented Feb 8, 2019

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

@avin
Copy link
Owner

avin commented Mar 5, 2019

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 :\

image

@Gun-neR
Copy link
Author

Gun-neR commented Mar 5, 2019

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()));

image

image

Go figure :D

@avin
Copy link
Owner

avin commented Mar 5, 2019

Seems like it is a floating problem :\

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants