Update failed from API

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Update failed from API

Post by zoic22 »

Hi,

I use your API in my own automation application but I have some bug on update : sometimes I don't get the update from API (but it's ok on zway interface) and if a do manualy update on zway interface API send me an update.
I use API like that :
- Call API with last received datetime (if null I use now - 24 hour)
- I do my job (update BDD, send event....)
- I persit "updateTime" to reuse on next check

But it's seem I got lost event, I can't understand why.
Is that I make a mistake in my use of the API ?
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Update failed from API

Post by PoltoS »

I'm sure it is on your side, since the Z-Way interface uses same API.

Not that it is suggested to use 0 instead of datetime first time, since datetime can easily be > than updateTime values (and this can result in events loss)
Post Reply