diff options
| author | Sean Cross <sean@xobs.io> | 2020-05-19 14:56:04 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2020-05-19 15:01:19 +0800 |
| commit | 34f91f01c6691908e024eba07b7f0eff187a693a (patch) | |
| tree | feffdcc18ca224bafa02cf0ef5e5a95f34fea48e /supervisor/shared | |
| parent | cfe65742a376652be0b44ff93d47f407a9db8bf9 (diff) | |
bleio: adapter: add advertising timeout and status
Add a field to allow specifying a timeout when initiating advertising.
As part of this, add a new property to determine if the device is still
advertising.
Additionally, have the `anonymous` property require a timeout, and set
the timeout to the maximum possible value if no timeout is specified.
Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'supervisor/shared')
| -rw-r--r-- | supervisor/shared/bluetooth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/bluetooth.c b/supervisor/shared/bluetooth.c index 6b1c03fc0..98d0fab38 100644 --- a/supervisor/shared/bluetooth.c +++ b/supervisor/shared/bluetooth.c @@ -74,7 +74,7 @@ void supervisor_bluetooth_start_advertising(void) { // TODO: switch to Adafruit short UUID for the advertisement and add manufacturing data to distinguish ourselves from arduino. _common_hal_bleio_adapter_start_advertising(&common_hal_bleio_adapter_obj, true, - false, + false, 0, 1.0, circuitpython_advertising_data, sizeof(circuitpython_advertising_data), |
