When developing a keyboard peripheral using the nRF5 SDK keyboard example, how can I determine whether the connected host device is a Mac, Windows PC, or Android phone?(NRF52833,BLE)
When developing a keyboard peripheral using the nRF5 SDK keyboard example, how can I determine whether the connected host device is a Mac, Windows PC, or Android phone?(NRF52833,BLE)
How can a peripheral device obtain the host's Device Information Service? Is there any sample code available?
Hi,
Reliably detecting the peer device OS can be difficult. Using the Device Information Service (DIS) may give some clues, but you cannot trust it will always give you the information you need. The nrF Connect SDK does not include a DIS client implementation, so you would have to implement that yourself. I would recommend backtracking a bit to consider if you could solve this another way, though (mostly for robustness).