Skip to content

Refreshing the product list #364

Answered by mloyd
dustin asked this question in Q&A
Discussion options

You must be logged in to vote

In my experience, calling /api/1/vehicles keeps it awake too. But it won't 'wake' it if it's asleep. It may be different with /api/1/products but the result is exactly the same so I wouldn't be surprised if it behaved the same way.

Unless you have another objective reason to know your car should stay awake (e.g. sentry, charging, etc), it will take 10-15 minutes before it goes back asleep. At which point, you can query its status without waking it.

I use a typical network exponential backoff approach when the car is not expected to be online. That allows it to go asleep and then you can query as needed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dustin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants