Over-the-air Application Functions
APP_OTA API Brief
Application |
Brief |
|---|---|
OTA service initialization |
|
master handle slave OTA result |
|
check OTA service status |
APP_OTA API Reference
Header File
Functions
-
void app_ota_init(void)
OTA service initialization.
initile OTA relatived setting and hook up bluetooth service
- 返回:
N/A
-
void app_ota_notify_slave_result_handle(const uint8_t *p_data, uint16_t length)
master handle slave OTA result
master handle OTA result send from slave, used to confirm the upgrade process and result
- 参数:
p_data – [in] ota_notify_result_t data send from slave
length – [in] data length
- 返回:
N/A
-
bool app_ota_is_running(void)
check OTA service status
check OTA service connect or disconnet
- 返回值:
TRUE – connect
FALSE – disconnet
- 返回:
result
Structures
-
struct ota_notify_result_t
slave OTA notify result struct definition
Macros
-
OTA_TYPE_CHECKSUM
slave OTA notify for notify master checksum
-
OTA_TYPE_FINAL_RESULT
slave OTA notify for notify master final result