updated BLE

This commit is contained in:
iwahdan88
2019-07-30 17:40:15 +02:00
parent ec5f2406f0
commit 11f9cbcae7

View File

@@ -58,10 +58,11 @@ bluetooth = Bluetooth()
## Methods
#### bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None)
#### bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None, modem\_sleep=True)
* `id` Only one Bluetooth peripheral available so must always be 0
* `mode` currently the only supported mode is `Bluetooth.BLE`
* `modem_sleep` Enables or Disables BLE modem sleep, Disable modem sleep as a workaround when having Crashes due to flash cache being disabled, as this prevents BLE task saving data in external RAM while accesing external flash for R/W
* `antenna` selects between the internal and the external antenna. Can be either
`Bluetooth.INT_ANT`, `Bluetooth.EXT_ANT`.