BLE fota Robot Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_lamp_control by
Diff: dialog_fota/app.h
- Revision:
- 12:e3d3676753cc
- Parent:
- 9:fcf91f563147
- Child:
- 13:e714e2971c49
diff -r 1ed93accb3fb -r e3d3676753cc dialog_fota/app.h --- a/dialog_fota/app.h Mon Aug 24 03:24:19 2015 +0000 +++ b/dialog_fota/app.h Wed Sep 02 07:44:29 2015 +0000 @@ -37,8 +37,8 @@ #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 ("DA1458A") -#define APP_DIS_MODEL_NB_STR_LEN (7) +#define APP_DIS_MODEL_NB_STR ("SC-BF-EXT") +#define APP_DIS_MODEL_NB_STR_LEN (9) /// System ID - LSB -> MSB (FIXME) #define APP_DIS_SERIAL_NB_STR ("123-789") #define APP_DIS_SERIAL_NB_STR_LEN (7) @@ -59,11 +59,11 @@ #define APP_ADV_DATA_MAX_SIZE (ADV_DATA_LEN - 3) /// Scan Response data maximal length #define APP_SCAN_RESP_DATA_MAX_SIZE (SCAN_RSP_DATA_LEN) -#define APP_DFLT_ADV_DATA "\x09\x03\xFF\x18\xFF\x18\x0A\x18\x0A\x18" +#define APP_DFLT_ADV_DATA "\x09\x03\xF0\x18\xFF\x18\x0A\x18\xF1\x18" #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 ("DA1458A") +#define APP_DFLT_DEVICE_NAME ("FAN-00") typedef struct @@ -130,6 +130,14 @@ void app_fota_server_db_create(BleMsgHandler* BMH); /** **************************************************************************************** + * @brief Send enable request to Fan Control profile task. + * @param[in] BMH Ble Message Handler class reference + * @return void. + **************************************************************************************** + */ +void app_fan_control_db_create(BleMsgHandler* BMH); +/** + **************************************************************************************** * @brief Send Start Advertising command to GAPM task. * @param[in] BMH Ble Message Handler class reference * @return void. @@ -164,6 +172,15 @@ void app_fota_server_enable(ble_dev *device,BleMsgHandler* BMH); /** **************************************************************************************** + * @brief Send enable request to fan_control profile task. + * @param[in] device Ble device info + * @param[in] BMH Ble Message Handler class reference + * @return void. + **************************************************************************************** + */ +void app_fan_control_enable(ble_dev *device,BleMsgHandler* BMH); +/** + **************************************************************************************** * @brief Send connection confirmation. * param[in] auth Authentication requirements. * @param[in] device Ble device info