From 34f91f01c6691908e024eba07b7f0eff187a693a Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 19 May 2020 14:56:04 +0800 Subject: 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 --- supervisor/shared/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'supervisor/shared') 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), -- cgit v1.2.3