Page 1 of 1
Page Load Repeating Action
Posted: Mon Nov 26, 2012 3:27 pm
by d_hero
If I have a repeating action running on page load that repeats every 0.5 seconds, querying the output of something, will that significantly drain the battery compared to not having it?
Re: Page Load Repeating Action
Posted: Tue Nov 27, 2012 10:09 am
by d_hero
To answer my own question, it does seem that when I remove the page load action the battery life is much better. If only IP devices could push messages to Demopad rather than demopad having to query for something.
I want to display the output of my AV receiver on the demopad screen, so showing the input and volume and surround mode etc. I want this to update in almost realtime because my AVR will be hidden away. Currently to do this I send the Onkyo query commands every 0.5 or 1 second with regex used to extract the required info. I take it there is no other way to do this so that I dont have to have a constantly running query?
Re: Page Load Repeating Action
Posted: Tue Nov 27, 2012 2:46 pm
by trevorst
The Onkyo and most other receivers send out a message when anything changes, so why do you need to Query??
If you have feedbacks set on Demopad they will receive the messages and update.
Re: Page Load Repeating Action
Posted: Tue Nov 27, 2012 5:11 pm
by d_hero
Oh ok, I didnt realise that. How does demopad know to receive that message though? Is it a broadcast message that the receiver sends out?
Re: Page Load Repeating Action
Posted: Tue Nov 27, 2012 5:20 pm
by DemoPad
If you tick the box 'maintain active connection' in the 2-way settings, then the app establishes a connection & permanently listens for data, while the app is running.
Re: Page Load Repeating Action
Posted: Tue Nov 27, 2012 10:01 pm
by d_hero
yeah i feel stupid now, i spent ages trying to get the queries working and i didnt need to at all! works perfectly without and saves battery, but you all knew that!
