| 205 | }; |
| 206 | |
| 207 | void BLE_startScan(uint32_t timeout) { |
| 208 | static MyAdvertisedDeviceCallbacks advertisedDeviceCallbacks; |
| 209 | BLEScan* pBLEScan = BLEDevice::getScan(); |
| 210 | pBLEScan->setAdvertisedDeviceCallbacks(&advertisedDeviceCallbacks); |
| 211 | pBLEScan->setInterval(1349); |
| 212 | pBLEScan->setWindow(449); |
| 213 | pBLEScan->setActiveScan(true); |
| 214 | pBLEScan->start(timeout, false); |
| 215 | } |
| 216 | |
| 217 | #define BLOCK_DATA_SIZE_BLE 4096 |
| 218 | #define BLOCK_PART_DATA_SIZE_BLE 230 |
no test coverage detected