SARDONYX-sard / bluetooth-battery-monitor

(Wip88%, but work at a minimum)For Windows lightweight bluetooth battery monitor
Apache License 2.0
15 stars 0 forks source link

The Bluetooth device icon does not become active or inactive immediately #15

Open ipwin-github opened 1 month ago

ipwin-github commented 1 month ago

The Bluetooth device icon in the main window of the program becomes active or inactive only after the set update interval has expired. For example, if the default update interval is 60 minutes, the device icon will become active only after 60 minutes. Before that, the device icon will be crossed out, as if the device is not connected. When you turn off your Bluetooth device, the program also does not update the icon immediately. It would be nice if the program could immediately detect when the Bluetooth device is on or off.

SARDONYX-sard commented 1 month ago

Yes, we are currently using Script to get information on all devices (connection status, battery information, last used, etc.) in a constant interval sense and not in real time.

I am also looking for a way to do it in real time, but so far I am not sure.

https://github.com/SARDONYX-sard/bluetooth-battery-monitor/issues/11

sergeivich commented 1 month ago

maybe it's possible to have the interval auto changed upon device connection to something like 1-second, then after execution of task, the interval is auto changed back to previous setting.

SARDONYX-sard commented 1 month ago

I do not know how to detect the connection of a device in the first place...

I have tried the DeviceWatcher, but it has never worked.