We have a BLE peripheral that has a button interface and nothing else. We would like to add some security so only certain smartphones can send/receive commands from it. An example use case is when a user gets this device, they can pair with it. We would also like it so that this user's husband/wife can also control this device. However, we would NOT want it so that the user's neighbor can connect to this device and control it.
What would be a good way to implement this? I know we can use bonding to do this but I'm not sure how to restrict the neighbor from bonding and would we need a separate key for the husband/wife if we use a Long Term Key.