BLE fota Lamp Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_fan_control by
Diff: dialog_fota/app_task.h
- Revision:
- 5:e11b23f9aacc
- Parent:
- 4:60be78a172c2
- Child:
- 6:8dd20294b2aa
diff -r 60be78a172c2 -r e11b23f9aacc dialog_fota/app_task.h --- a/dialog_fota/app_task.h Wed Jun 24 08:50:07 2015 +0000 +++ b/dialog_fota/app_task.h Mon Jul 13 06:32:05 2015 +0000 @@ -1,6 +1,7 @@ #ifndef APP_TASK_H #define APP_TASK_H #include "gapm_task.h" +#include "gapc_task.h" #include "BleMsgHandler.h" namespace sevencore_fota{ @@ -14,10 +15,16 @@ struct diss_create_db_cfm *param, unsigned short dest_id, unsigned short src_id, - BleMsgHandler* BMH); + BleMsgHandler* BMH); + + int fota_server_create_db_cfm_handler(unsigned short msgid, + struct fota_server_create_db_cfm *param, + unsigned short dest_id, + unsigned short src_id, + BleMsgHandler* BMH); int gapm_device_ready_ind_handler(unsigned short msgid, - void *param, + struct gap_ready_evt *param, unsigned short dest_id, unsigned short src_id, BleMsgHandler* BMH ); @@ -33,6 +40,21 @@ unsigned short dest_id, unsigned short src_id, BleMsgHandler* BMH); + +int gapc_connection_req_ind_handler(uint16_t msgid, + struct gapc_connection_req_ind *param, + uint16_t dest_id, + uint16_t src_id, + BleMsgHandler* BMH); + +int gapc_disconnect_ind_handler(uint16_t msgid, + struct gapc_disconnect_ind *param, + uint16_t dest_id, + uint16_t src_id, + BleMsgHandler* BMH); + +void fota_server_data_flash_ind_handler(BleMsgHandler* BMH); + }//namespace #endif//APP_TASK_H