Ronald Garcia / Mbed 2 deprecated FOTA_TEST

Dependencies:   BLE_API mbed nRF51822

Committer:
rgbetanco
Date:
Fri Mar 24 04:49:51 2017 +0000
Revision:
0:c54bb1176cf5
testing fota for nRF51 DK

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgbetanco 0:c54bb1176cf5 1 #include "mbed.h"
rgbetanco 0:c54bb1176cf5 2 #include "BLE.h"
rgbetanco 0:c54bb1176cf5 3
rgbetanco 0:c54bb1176cf5 4 BLEDevice ble;
rgbetanco 0:c54bb1176cf5 5
rgbetanco 0:c54bb1176cf5 6 int main(void){
rgbetanco 0:c54bb1176cf5 7 ble.init();
rgbetanco 0:c54bb1176cf5 8 ble.setAdvertisingInterval(1000); /* 100ms; in multiples of 0.625ms. */
rgbetanco 0:c54bb1176cf5 9 ble.startAdvertising();
rgbetanco 0:c54bb1176cf5 10 while(true){
rgbetanco 0:c54bb1176cf5 11 ble.waitForEvent();
rgbetanco 0:c54bb1176cf5 12 }
rgbetanco 0:c54bb1176cf5 13 }