From c5cf7df5fa7d922bc14d8e35a24e4f2637013ded Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 1 Oct 2019 11:54:35 +0200 Subject: [PATCH] Added security features for the GATT server --- content/firmwareapi/pycom/network/bluetooth/_index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/firmwareapi/pycom/network/bluetooth/_index.md b/content/firmwareapi/pycom/network/bluetooth/_index.md index d803ed1..5548b4b 100644 --- a/content/firmwareapi/pycom/network/bluetooth/_index.md +++ b/content/firmwareapi/pycom/network/bluetooth/_index.md @@ -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.