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

close HID Service

       I am now based on nrf52832 SDK14.2 development, nrf52832 as a peripheral device, I want to connect with IOS phone, nrf52832 provides HID Service, but when connected with Android phone, Service should close HID Service, how should I operate? Thank you!

Parents
  • Hi Jim, 

    If possible could you tell a little bit more about the purpose of the application ? 

    Dynamically remove a service in the attribute table is not supported by our softdevice yet.  But what you can do is to connect and check if it's Android or iOS. If it's Android you can quickly disconnect, disable the softdevice and enable it again, this time without initiate the HID service and then reconnect. It can take less than a second and make it transparent to the customer. When you do that you need to make sure you sent the Service Changed indication so that the phone would do service discovery again. 

Reply
  • Hi Jim, 

    If possible could you tell a little bit more about the purpose of the application ? 

    Dynamically remove a service in the attribute table is not supported by our softdevice yet.  But what you can do is to connect and check if it's Android or iOS. If it's Android you can quickly disconnect, disable the softdevice and enable it again, this time without initiate the HID service and then reconnect. It can take less than a second and make it transparent to the customer. When you do that you need to make sure you sent the Service Changed indication so that the phone would do service discovery again. 

Children
No Data
Related