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.
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_lamp_control by
module
Application entry point function definition. More...
Enumerations | |
enum | { APP_IDLE, APP_CONNECTABLE, APP_CONNECTED, APP_STATE_MAX, APP_SCAN } |
Functions | |
void | app_rst_gap (BleMsgHandler *BMH) |
Send Reset request to GAPM task. | |
void | app_diss_db_create (BleMsgHandler *BMH) |
Send enable request to DISS profile task. | |
void | app_fota_server_db_create (BleMsgHandler *BMH) |
Send enable request to FOTA profile task. | |
void | app_fan_control_db_create (BleMsgHandler *BMH) |
Send enable request to Fan Control profile task. | |
void | app_lamp_control_db_create (BleMsgHandler *BMH) |
Send enable request to Lamp Control profile task. | |
void | app_adv_start (BleMsgHandler *BMH) |
Send Start Advertising command to GAPM task. | |
void | app_set_mode (BleMsgHandler *BMH) |
Set Bondabe mode. | |
void | app_dis_enable (ble_dev *device, BleMsgHandler *BMH) |
Send enable request to DISS profile task. | |
void | app_fota_server_enable (ble_dev *device, BleMsgHandler *BMH) |
Send enable request to FOTA profile task. | |
void | app_fan_control_enable (ble_dev *device, BleMsgHandler *BMH) |
Send enable request to fan_control profile task. | |
void | app_lamp_control_enable (ble_dev *device, BleMsgHandler *BMH) |
Send enable request to lamp_control profile task. | |
void | app_connect_confirm (uint8_t auth, ble_dev *device, BleMsgHandler *BMH) |
Send connection confirmation. | |
void | app_send_disconnect (uint16_t dst, uint16_t conhdl, uint8_t reason, BleMsgHandler *BMH) |
Send the GAPC_DISCONNECT_IND message to a task. |
Detailed Description
Application entry point function definition.
GATTC TASK Header.
Generic Access Profile Manager Task Header.
Generic Access Profile Controller Header.
Generic Access Profile.
Fota Server Task Header.
Device Information Service Server Header.
Compile configuration.
application handlers for ble events and responses.
Software Version.
Application entry point Header.
Enumeration Type Documentation
anonymous enum |
Function Documentation
void app_adv_start | ( | BleMsgHandler * | BMH ) |
void app_connect_confirm | ( | uint8_t | auth, |
ble_dev * | device, | ||
BleMsgHandler * | BMH | ||
) |
void app_dis_enable | ( | ble_dev * | device, |
BleMsgHandler * | BMH | ||
) |
void app_diss_db_create | ( | BleMsgHandler * | BMH ) |
void app_fan_control_db_create | ( | BleMsgHandler * | BMH ) |
void app_fan_control_enable | ( | ble_dev * | device, |
BleMsgHandler * | BMH | ||
) |
void app_fota_server_db_create | ( | BleMsgHandler * | BMH ) |
void app_fota_server_enable | ( | ble_dev * | device, |
BleMsgHandler * | BMH | ||
) |
void app_lamp_control_db_create | ( | BleMsgHandler * | BMH ) |
void app_lamp_control_enable | ( | ble_dev * | device, |
BleMsgHandler * | BMH | ||
) |
void app_rst_gap | ( | BleMsgHandler * | BMH ) |
void app_send_disconnect | ( | uint16_t | dst, |
uint16_t | conhdl, | ||
uint8_t | reason, | ||
BleMsgHandler * | BMH | ||
) |
Send the GAPC_DISCONNECT_IND message to a task.
- Parameters:
-
[in] dst Task id of the destination task. [in] conhdl The conhdl parameter of the GAPC_DISCONNECT_IND message. [in] reason The reason parameter of the GAPC_DISCONNECT_IND message. [in] BMH Ble Message Handler class reference
- Returns:
- void.
Generated on Tue Jul 12 2022 21:25:06 by
