This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to add HID service after connection to custom service

Dear Developer Zone, I'm using an nrf51822 with SDK8 & SD S110 v8

We have an iOS app connecting to a custom service on the NRF device. What we would like to do control the camera shutter using the HID service. Is it possible to have the iOS device discover the HID service after connecting to the custom service?

Thanks

Parents
  • What do you mean connecting to a custom service. The iOS will scan for devices and you can add a scan filter (it will only discover devices that advertise a specific service UUID). So in your case your scan filter could be for your custom service. However once the iOS device discovers the advertising nRF5x device it can then discover all of the services the device has. So the device could have multiple services, one being the customer servie and another being the HID service. After the iOS device discovers the HID service it can use it like normal and the fact that their are other servies doesnt matter.

Reply
  • What do you mean connecting to a custom service. The iOS will scan for devices and you can add a scan filter (it will only discover devices that advertise a specific service UUID). So in your case your scan filter could be for your custom service. However once the iOS device discovers the advertising nRF5x device it can then discover all of the services the device has. So the device could have multiple services, one being the customer servie and another being the HID service. After the iOS device discovers the HID service it can use it like normal and the fact that their are other servies doesnt matter.

Children
No Data
Related