|
SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
|
#include <ble_nus.h>
Data Fields | |
| uint32_t | disconnect_count |
| uint8_t | last_disconnect_reason |
| uint32_t | advert_restart_attempts |
| int | last_advert_restart_result |
| uint8_t | deinit_in_progress_at_last_disconnect |
| uint32_t | boot_advert_attempts |
| int | last_boot_advert_result |
Diagnostic snapshot exposed via bento.fw.query's _diag.ble block. Lets the desktop root-cause Issue #2 (after a BLE link drop the host cannot rediscover the board without a power-cycle) by reporting what the disconnect callback did, whether wiced_bt_start_advertisements succeeded, and the deinit-in-progress flag state at the moment of disconnect. Numeric last_advert_restart_result follows the wiced_result_t enum (0 = WICED_BT_SUCCESS).
| uint32_t ble_nus_diag_t::disconnect_count |
| uint8_t ble_nus_diag_t::last_disconnect_reason |
| uint32_t ble_nus_diag_t::advert_restart_attempts |
| int ble_nus_diag_t::last_advert_restart_result |
| uint8_t ble_nus_diag_t::deinit_in_progress_at_last_disconnect |
| uint32_t ble_nus_diag_t::boot_advert_attempts |
| int ble_nus_diag_t::last_boot_advert_result |