sdasd
Dependencies: BLE_API mbed nRF51822
Fork of MEDRON_SNIFFER_ABCD-KIMLIKLI-OLANLARI-TARAMA-YAPAR_30062016 by
Diff: main.cpp
- Revision:
- 5:103717ce54e5
- Parent:
- 4:dd8231564124
- Child:
- 6:850f44146c9f
--- a/main.cpp Fri Jun 19 23:41:09 2015 +0000 +++ b/main.cpp Sat Jun 20 23:40:04 2015 +0000 @@ -17,7 +17,7 @@ #include "mbed.h" #include "BLE.h" -BLEDevice ble; +BLE ble; DigitalOut led1(LED1); void periodicCallback(void) @@ -46,8 +46,8 @@ ble.init(); - ble.setScanParams(500 /* scan interval */, 200 /* scan window */); - ble.startScan(advertisementCallback); + ble.gap().setScanParams(500 /* scan interval */, 200 /* scan window */); + ble.gap().startScan(advertisementCallback); while (true) { ble.waitForEvent();