You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm fairly new to bluetooth development. I'm trying to read the characteristics in a Raspberry Pi from my iphone with CoreBluetooth. The problem is, I want to protect some of those characteristics from being read without authentication. I noticed there is a "secure" parameter in the Characteristic constructor, but I don't know how to set the credentials to restrict the access to it.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
The secure mode does not use credentials, it's more of a "trusted" mode, since you get a prompt.
One option would be to have a authentication service/characteristic, so if a pin code isn't written after X seconds, your app disconnects the peripheral. I have a few BLE devices that use this technique. There is also a disconnect event, that can be used to reset auth state when a device disconnects.
Hi, I'm fairly new to bluetooth development. I'm trying to read the characteristics in a Raspberry Pi from my iphone with CoreBluetooth. The problem is, I want to protect some of those characteristics from being read without authentication. I noticed there is a "secure" parameter in the Characteristic constructor, but I don't know how to set the credentials to restrict the access to it.
Thanks in advance.
The text was updated successfully, but these errors were encountered: