![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BLE fota Lamp Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_fan_control by
Diff: main.cpp
- Revision:
- 8:9eec2c246a85
- Parent:
- 7:3478c46cceef
- Child:
- 12:e3d3676753cc
--- a/main.cpp Mon Jul 20 09:22:15 2015 +0000 +++ b/main.cpp Thu Aug 20 05:16:55 2015 +0000 @@ -1,3 +1,14 @@ +/** + * @file main.cpp + * @brief interface configuration & main loop start + * Copyright 2015 SEVENCORE Co., Ltd. + * + * @author HyeongJun Kim + * @version 1.0.0 + * @since 2015-08-17 +*/ + + #include "mbed.h" #include "BleMsgHandler.h" #include "app.h" @@ -27,18 +38,29 @@ } int main() { - led_setting_zero(); - + wait(0.5); + myled = 1; + wait(0.5); + myled = 0; + wait(0.5); + myled = 1; + wait(0.5); + myled = 0; + wait(0.5); + led_setting_one(); + wait(0.5); hostpc.baud(9600); + wait(0.5); device.baud(115200); device.set_flow_control(device.RTSCTS,P2_7,p12); + wait(0.5); BleMsgHandler myfota(&device,&hostpc); myfota.PrintTitle(); app_rst_gap(&myfota); - for(int i = 0; i < 20; i++) { + for(int i = 0; i < 200; i++) { myfota.BleReceiveMsg(); myfota.BleMsgHandle(); }