Only get changes using user_data

Hello,

On the UI simple page (http://wiki.micasaverde.com/index.php/UI_Simple#lu_sdata:_The_polling_loop), you can use lu_sdata to only get changes since your last request. Does the same feature exist with user_data? If not, is calling user_data every second a particularly intensive operation for the Vera Edge?

Thanks for the help

You use user_data when to get the whole data and status to get updates.

According to the page: http://wiki.micasaverde.com/index.php/UI_Notes#Tracking_status_changes

I can have a ‘long poll’ and only changes will be sent to me. I’ve tried this using the URL: http://:3480/data_request?id=status&LoadTime=DataVersion=&Timeout=60&Minimumdelay=2

However it simply returns the full status response, regardless of whether there have been any changes or not. Should it be doing this?

Thanks for the help

You have to be careful with the values of LoadTime and DataVersion - where are you getting them from?

From the previous request. Example url: http://:3480/data_request?id=status&LoadTime=1446892313DataVersion=892339820&Timeout=60&MinimumDelay=2

You’re sure you’re using the value from [tt]DataVersion[/tt] and not from [tt]UserData_DataVersion[/tt] ?

Yea using dataversion.

I’ve spotted the problem - there was a missing & between the loadtime value and dataversion parameter in the URL

Ha yes! I actually cut and pasted your string for a start, and thought I had deleted the & when plugging in my actual load time. Well spotted. Always pleased to hear that Vera works the way that you think it’s supposed to work.