SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (ModusToolbox)
Loading...
Searching...
No Matches
ble_nus_diag_t Struct Reference

#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

Detailed Description

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).

Field Documentation

◆ disconnect_count

uint32_t ble_nus_diag_t::disconnect_count

◆ last_disconnect_reason

uint8_t ble_nus_diag_t::last_disconnect_reason

◆ advert_restart_attempts

uint32_t ble_nus_diag_t::advert_restart_attempts

◆ last_advert_restart_result

int ble_nus_diag_t::last_advert_restart_result

◆ deinit_in_progress_at_last_disconnect

uint8_t ble_nus_diag_t::deinit_in_progress_at_last_disconnect

◆ boot_advert_attempts

uint32_t ble_nus_diag_t::boot_advert_attempts

◆ last_boot_advert_result

int ble_nus_diag_t::last_boot_advert_result

The documentation for this struct was generated from the following file: