testing fota on nRF51 DK
Dependencies: BLE_API mbed nRF51822
mail.cpp
- Committer:
- rgbetanco
- Date:
- 2017-03-24
- Revision:
- 0:c54bb1176cf5
File content as of revision 0:c54bb1176cf5:
#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();
}
}