mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 13:06:14 +01:00
Added security features for the GATT server
This commit is contained in:
@@ -58,7 +58,7 @@ bluetooth = Bluetooth()
|
||||
|
||||
## Methods
|
||||
|
||||
#### bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None, modem\_sleep=True)
|
||||
#### bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None, modem\_sleep=True, secure=False)
|
||||
|
||||
* `id` Only one Bluetooth peripheral available so must always be 0
|
||||
* `mode` currently the only supported mode is `Bluetooth.BLE`
|
||||
@@ -66,6 +66,7 @@ bluetooth = Bluetooth()
|
||||
* `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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user