Bluetooth headphone to transmit their battery percentage

I am trying to get Airpods or other Bluetooth device to transmit there battery percentage over Bluetooth. How do I get bluetooth headphones to transmit their battery percentage to the phone. I am at a standstill right now as I am unsure on what the Bluetooth can transmit as well as the battery extension by Taifun.

This is the extension made by Taifun
https://puravidaapps.com/battery.php

What happens first is the the item connects to the app.
First

This is what I think will work but I am not to sure.
Second

This is what the designer looks like if you need to know

1 Like