Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

how can I determine whether the connected host device is a Mac, Windows PC, or Android phone?

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)

Parents
  • 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).

Reply
  • 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).

Children
No Data
Related