testing fota on nRF51 DK
Dependencies: BLE_API mbed nRF51822
Diff: mail.cpp
- Revision:
- 0:c54bb1176cf5
diff -r 000000000000 -r c54bb1176cf5 mail.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mail.cpp Fri Mar 24 04:49:51 2017 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "BLE.h" + +BLEDevice ble; + +int main(void){ + ble.init(); + ble.setAdvertisingInterval(1000); /* 100ms; in multiples of 0.625ms. */ + ble.startAdvertising(); + while(true){ + ble.waitForEvent(); + } +} \ No newline at end of file