andyvorld / LGSTrayBattery

A tray app used to track battery levels of wireless Logitech mouse.
GNU General Public License v3.0
369 stars 30 forks source link

pollPeriod and retryTime clarification #128

Open guinaicha opened 3 weeks ago

guinaicha commented 3 weeks ago

Hello, firstly thanks for this great tool! Confirmed working for G304/5.

Would just like to clarify then regarding pollPeriod and retryTime.

  1. When does the polling actually start? After the exe first launches is it?
  2. Is there an example of what a high amount for pollPeriod is? Currently I've set it to 7200/2hrs.
  3. So when I'm afk and device sleeps, the tool will keep trying to query the device based on retryTime? Is it better then to also set this to a high amount?
  4. Maybe moot but when PC is locked, does the tool keep querying the device?

Edit: Observing the behavior of the ff.:

I set pollPeriod that low just for testing purposes. The tool was not able to re-query device status, it still showed as Not initialised even after moving the mouse + wait times. Had to choose rediscover, then it was able to show status. Is this the expected behavior?

I thought the tool would keep re-querying device status based on retryTime, and pollPeriod is only used after a succesful query. But neither seemed to work how I thought it would be.