Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed_fota by
main.cpp
- Committer:
- dudnwjs
- Date:
- 2015-06-23
- Revision:
- 3:1e70387e1337
- Parent:
- 1:5cf3a6c969be
- Child:
- 4:60be78a172c2
File content as of revision 3:1e70387e1337:
#include "mbed.h"
#include "BleMsgHandler.h"
#include "app.h"
Serial hostpc(USBTX,USBRX);
Serial device(p13,p14);
DigitalOut myled(LED1);
using namespace sevencore_fota;
int main() {
device.baud(115200);
BleMsgHandler myfota(&device,&hostpc);
myfota.PrintTitle();
app_rst_gap(&myfota);
myfota.BleReceiveMsg();
myfota.BleMsgHandle();
while(1) {
myled = 1;
wait(0.5);
myled = 0;
wait(0.5);
}
}
