如何獲取W801的藍牙參數

發布於 2022-04-18 13:31:00

需要獲取到藍牙參數,但是函數沒有返回

/**

  • @brief get the adapter property

*

  • @param[in] type @ref tls_bt_property_type_t

*

  • @return @ref tls_bt_status_t

*

  • @note None

*/
tls_bt_status_t tls_bt_get_adapter_property(tls_bt_property_type_t type);

寫這個函數的人是不是忘記了返回的參數?

/* Bluetooth Error Status /
typedef enum
{

TLS_BT_STATUS_SUCCESS, /**< success */
TLS_BT_STATUS_FAIL,
TLS_BT_STATUS_NOT_READY,
TLS_BT_STATUS_NOMEM, /**< alloc memory failed */
TLS_BT_STATUS_BUSY,
TLS_BT_STATUS_DONE,        /**< request already completed */
TLS_BT_STATUS_UNSUPPORTED,
TLS_BT_STATUS_PARM_INVALID,
TLS_BT_STATUS_UNHANDLED,
TLS_BT_STATUS_AUTH_FAILURE,
TLS_BT_STATUS_RMT_DEV_DOWN,
TLS_BT_STATUS_AUTH_REJECTED,
TLS_BT_STATUS_THREAD_FAILED, /**< create internal thread failed */
TLS_BT_STATUS_INTERNAL_ERROR, /**< controller stack internal error */
TLS_BT_STATUS_CTRL_ENABLE_FAILED,
TLS_BT_STATUS_HOST_ENABLE_FAILED,
TLS_BT_STATUS_CTRL_DISABLE_FAILED,
TLS_BT_STATUS_HOST_DISABLE_FAILED,

} tls_bt_status_t;

查看更多

關注者
0
被浏覽
1.3k
1 個回答
isme
isme 認證專家 2022-04-18
冰鎮大西瓜

image.png
1.這個函數接口返回的是藍牙狀態。
image.png
2.目前用的是哪個藍牙庫?需要對看上面對應的文檔資料,SDK默認用的是NimBLE版。
3.你指的藍牙參數是什麼?

撰寫答案

請登錄後再發布答案,點擊登錄

發布
問題

分享
好友

手機
浏覽

掃碼手機浏覽