enhance advertising
- Separate BLEAdvertisingData & BLEAdvertising - add setType(), setTimeout(), setInterval(), setIntervalMS() - add setStopCallback() support - Add option to only advertising for a specific time (in multiple of timeout) using start(stop_sec) - default timeout = 30 second, fast = 20 ms, slow = 152.5 ms
This commit is contained in:
1 parent
412a2c9e9d
commit
0302d88a7a
12 files changed
+264
-99
No files matched your search
@@ -66,6 +66,10 @@ void adafruit_callback_task(void* arg)
|
||||
((BLEGap::disconnect_callback_t) func) ( (uint16_t) args[0], (uint8_t) args[1] );
|
||||
break;
|
||||
|
||||
case BLEAdvertising_stop_callback_t:
|
||||
((BLEAdvertising::stop_callback_t) func)();
|
||||
break;
|
||||
|
||||
/*------------- Bluefruit -------------*/
|
||||
|
||||
/*------------- Central -------------*/
|
||||
|
||||
Reference in new issue
Block a user