forked from h2zero/esp-nimble-cpp
[Breaking] Change all time input parameters to milliseconds. (#78)
Changes all functions that accept a time parameter to use milliseconds instead of seconds. * Adds duration input to NimBLEDevice::startAdvertising and NimBLEServer::startAdvertising.
This commit is contained in:
1 parent
0b6337538c
commit
bb3dd5f114
14 files changed
+36
-35
No files matched your search
@@ -17,7 +17,7 @@
|
||||
|
||||
extern "C"{void app_main(void);}
|
||||
|
||||
int scanTime = 5; //In seconds
|
||||
int scanTime = 5 * 1000; // In milliseconds, 0 = scan forever
|
||||
BLEScan* pBLEScan;
|
||||
|
||||
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
|
||||
|
||||
Reference in new issue
Block a user