Airpods-Windows-Service icon indicating copy to clipboard operation
Airpods-Windows-Service copied to clipboard

Add name alongside Addr

Open hasan-hasanov opened this issue 3 years ago • 1 comments

Hi,

Thank you for developing such a nice service that we can all take advantage! Would it be possible to add the device name to the response json? Sometimes the service picks up my phone as airpods too. It would be very easy to filter the responses.

I observed something else too. Sometimes the address changes. Is this normal? How can I determine which device is mine? Here is an example:

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -69, "addr": "MAC 1", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -74, "addr": "MAC 1", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -69, "addr": "MAC 1", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -69, "addr": "MAC 1", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -64, "addr": "MAC 1", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -73, "addr": "MAC 1", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -65, "addr": "MAC 2", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -68, "addr": "MAC 2", "model": "other"}

{"status": 0, "left": -1, "right": -1, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -670, "addr": "", "model": ""}

{"status": 0, "left": -1, "right": -1, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -670, "addr": "", "model": ""}

{"status": 0, "left": -1, "right": -1, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -670, "addr": "", "model": ""}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -72, "addr": "MAC 2", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -73, "addr": "MAC 2", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -75, "addr": "MAC 2", "model": "other"}

{"status": 1, "left": -1, "right": 90, "case": -1, "charging_case": false, "charging_left": false, "charging_right": false, "error": "", "rssi": -73, "addr": "MAC 2", "model": "other"}

Everything else is the same. The only difference is the MAC address which I did not show here.

Best Regards, Hasan

hasan-hasanov avatar Apr 08 '21 00:04 hasan-hasanov

Upon further investigation. Airpods change their device address every time I put them in the case. Since the service picks up other devices too, currently there is no way to uniquely identify the device. Is it even possible?

hasan-hasanov avatar Apr 08 '21 06:04 hasan-hasanov