BLE params changed

This commit is contained in:
Klaus K Wilting 2018-04-06 22:24:54 +02:00
parent f9ba346c68
commit 71b6f75781
2 changed files with 10 additions and 5 deletions

View File

@ -107,11 +107,15 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
http://dev.ti.com/tirex/content/simplelink_academy_cc2640r2sdk_1_12_01_16/modules/ble_scan_adv_basic/ble_scan_adv_basic.html
http://microchipdeveloper.com/wireless:ble-link-layer-packet-types
http://microchipdeveloper.com/wireless:ble-link-layer-address
"The Class of Device (CoD) in case of Bluetooth which allows us to differentiate the type of
device (smartphone, handsfree, computer, LAN/network AP). With this parameter we can
differentiate among pedestrians and vehicles."
#endif
*/
// Current devices seen on this scan session

View File

@ -13,10 +13,11 @@
// BLE scan parameters
#define BLESCANCYCLE 2 // BLE scan once after each <BLECYCLE> wifi scans
#define BLESCANTIME 11 // [seconds] scan duration, see above
#define BLESCANWINDOW 100 // [milliseconds] scan window, see above, 25 .. 10240
#define BLESCANINTERVAL 100 // [milliseconds] how long to wait between scans, 25 .. 10240
/*
#define BLESCANTIME 11 // [seconds] scan duration, see note below
#define BLESCANWINDOW 100 // [milliseconds] scan window, see below, 3 .. 10240, default 10
#define BLESCANINTERVAL 100 // [milliseconds] how long to wait between scans, 3 .. 10240, default 10
/* Note: guide for setting bluetooth parameters
*
* |< Scan Window > |< Scan Window > |< Scan Window > |
* |< Scan Interval >|< Scan Interval >|< Scan Interval >|