Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: source/main.cpp
- Revision:
- 16:bcb55cd411c3
- Parent:
- 15:4d9320346162
- Child:
- 17:e09f9a97d1af
diff -r 4d9320346162 -r bcb55cd411c3 source/main.cpp
--- a/source/main.cpp Mon Dec 17 14:54:20 2018 +0000
+++ b/source/main.cpp Thu Dec 27 09:33:32 2018 +0000
@@ -58,9 +58,9 @@
* parameters for each of the modes we use in our demo */
static const AdvModeParam_t advertising_params[] = {
/* advertising type interval timeout */
- { GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, 40,/*ms*/ 3/*s*/},
- { GapAdvertisingParams::ADV_SCANNABLE_UNDIRECTED, 100, 4 },
- { GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED, 100, 0 }
+ { GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, 40,/*ms*/ 6/*s*/},
+ { GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, 40, 6 },
+ { GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, 40, 6 }
};
/* when we cycle through all our advertising modes we will move to scanning modes */
@@ -490,7 +490,7 @@
* through all the params in the array */
if (_set_index >= (_is_in_scanning_mode? SCAN_PARAM_SET_MAX : ADV_PARAM_SET_MAX)) {
_set_index = 0;
- _is_in_scanning_mode = !_is_in_scanning_mode;
+ //_is_in_scanning_mode = !_is_in_scanning_mode;
}
_ble.shutdown();