Added security features for the GATT server

This commit is contained in:
Oliver
2019-10-01 11:54:35 +02:00
parent ca2b4f8177
commit c5cf7df5fa

View File

@@ -60,11 +60,12 @@ bluetooth = Bluetooth()
## Methods
### bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None)
### bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None, secure=False)
* `id` Only one Bluetooth peripheral available so must always be 0
* `mode` currently the only supported mode is `Bluetooth.BLE`
* `antenna` selects between the internal and the external antenna. Can be either`Bluetooth.INT_ANT`, `Bluetooth.EXT_ANT`.
* `secure` enables or disables the GATT Server security features.
With our development boards it defaults to using the internal antenna, but in the case of an OEM module, the antenna pin (`P12`) is not used, so it's free to be used for other things.