Per Johannessen
Per Johannessen

Reputation: 39

Battery status - bluetooth device windows phone 8

what library would you need in windows phone 8 to get status of battery (if it needs to charge) for a bluetooth device?

We can already get messages from the device, we just need info of the devices battery life.

Hope someone can guide us.

Upvotes: 0

Views: 1210

Answers (1)

DotNetRussell
DotNetRussell

Reputation: 9857

That's not how bluetooth works. Bluetooth is just a communication platform. That's it. It is just a common frequency that devices communicate on. The communications are completely proprietary.

For example, if you are trying to get the battery status from a smart watch it might be a code like 123 where as if you were trying to get it from a bluetooth toy it might be 321.

In order to figure out how to get the battery information back from your bluetooth device you need to find the developers documentation. If there is none then reach out to the company that made the device.

So in short, there is no standard way of pinging a device for battery information. It entirely depends on the protocol for that device.

Upvotes: 1

Related Questions