Server update lag/Android app

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
ollfa
Posts: 31
Joined: 12 Jul 2013 11:36

Server update lag/Android app

Post by ollfa »

Hi,

I'm developing an Android app but I'm experience some "lag" in the updates. I have a slider(seekbar) in my app which receives updates every two seconds from server-ip:8083/ZWaveAPI/Data/timestamp. If I slide this seekbar my lamp dims to some value. But when I call the the z-way server to receive a new update the seekbar value is not updated.

This makes the seekbar jump back after I slide it. It jumps to some random value between my the old value and the new value.

When I slide in a webbrowser (z-way-server) the slider value in my app changes, but not to the latest value. But, again, to some random value in between old and new value.

What is the cause of this lag, and can I program in some way to get around this?

ollfa
Posts: 31
Joined: 12 Jul 2013 11:36

Aha...

Post by ollfa »

... just found out about "invalideteTime"... It's all in the manual!
Post Reply