BLE fota Lamp Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_fan_control by
Diff: dialog_fota/app.h
- Revision:
- 13:e714e2971c49
- Parent:
- 12:e3d3676753cc
--- a/dialog_fota/app.h Wed Sep 02 07:44:29 2015 +0000 +++ b/dialog_fota/app.h Tue Oct 13 06:35:19 2015 +0000 @@ -37,10 +37,10 @@ #define APP_DIS_MANUFACTURER_NAME_STR ("SevenCore") #define APP_DIS_MANUFACTURER_NAME_STR_LEN (9) /// Model Number String (up to 18 chars) -#define APP_DIS_MODEL_NB_STR ("SC-BF-EXT") -#define APP_DIS_MODEL_NB_STR_LEN (9) +#define APP_DIS_MODEL_NB_STR ("SC-Lamp-02") +#define APP_DIS_MODEL_NB_STR_LEN (10) /// System ID - LSB -> MSB (FIXME) -#define APP_DIS_SERIAL_NB_STR ("123-789") +#define APP_DIS_SERIAL_NB_STR ("123-456") #define APP_DIS_SERIAL_NB_STR_LEN (7) /// System ID - LSB -> MSB (FIXME) #define APP_DIS_SYSTEM_ID ("\x12\x34\x56\xFF\xFE\x9A\xBC\xDE") @@ -63,7 +63,7 @@ #define APP_DFLT_ADV_DATA_LEN (8+2) #define APP_SCNRSP_DATA "\x09\xFF\x00\x60\x52\x57\x2D\x42\x4C\x45" #define APP_SCNRSP_DATA_LENGTH (10) -#define APP_DFLT_DEVICE_NAME ("FAN-00") +#define APP_DFLT_DEVICE_NAME ("SC-Lamp-02") typedef struct @@ -138,6 +138,14 @@ void app_fan_control_db_create(BleMsgHandler* BMH); /** **************************************************************************************** + * @brief Send enable request to Lamp Control profile task. + * @param[in] BMH Ble Message Handler class reference + * @return void. + **************************************************************************************** + */ +void app_lamp_control_db_create(BleMsgHandler* BMH); +/** + **************************************************************************************** * @brief Send Start Advertising command to GAPM task. * @param[in] BMH Ble Message Handler class reference * @return void. @@ -181,6 +189,15 @@ void app_fan_control_enable(ble_dev *device,BleMsgHandler* BMH); /** **************************************************************************************** + * @brief Send enable request to Lamp_control profile task. + * @param[in] device Ble device info + * @param[in] BMH Ble Message Handler class reference + * @return void. + **************************************************************************************** + */ +void app_lamp_control_enable(ble_dev *device,BleMsgHandler* BMH); +/** + **************************************************************************************** * @brief Send connection confirmation. * param[in] auth Authentication requirements. * @param[in] device Ble device info