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

How I can remove GATT service but not reset chip ?

Hi all, I use NRF52832.

I have a problem. I want when I connect to my chip and bond. After bond success, I insert new service. And when I disconnect from my chip, new service will be removed. This is to prevent others from reading my service. Now, I can insert new service but I can't remove service when I disconnect. But when disconnect, I don't want to reset entity chip. This is requirement.

So , Pls show me an solution !! Thank

Parents
  • Hi Giang,

    Why do you need to remove the service? Wouldn't adjusting the security parameters do just as well?

    Points to note:

    • Other devices can only accesses your services once they have connected. 
    • Service UUIDs are only included within the advertising packet if you specify it.
    • As you are bonding you can restrict all connections to bonded devices /whitelist only.
    • If you only allow one connection at a time then whilst a device is connected no others can read the data.
  • Thank for reply,

    I can't add whitelist because my device accept any mobile connect to it. After 30s if not bond, my device will disconnect. But within 30s, others can see my services. And I don't want it. Only device can bond to my device, it is  posible see my services. So I think if I disconnect after bond, I have to remove service .

Reply Children
No Data
Related