diff --git a/src/macsniff.cpp b/src/macsniff.cpp index 24ac6c3f..c3e75f7e 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -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 diff --git a/src/main.h b/src/main.h index f4aaeddc..16d94464 100644 --- a/src/main.h +++ b/src/main.h @@ -13,10 +13,11 @@ // BLE scan parameters #define BLESCANCYCLE 2 // BLE scan once after each 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 >|