Search found 1 match

by Ling_tmd
Thu Apr 13, 2023 1:46 am
Forum: ESP-IDF 中文讨论版
Topic: BLE 多从机通知注册成功时,无法区分是哪个设备的回调。
Replies: 0
Views: 564

BLE 多从机通知注册成功时,无法区分是哪个设备的回调。

IDF注册通知代码如下: esp_err_t esp_ble_gattc_register_for_notify (esp_gatt_if_t gattc_if,esp_bd_addr_t server_bda, uint16_t handle) { btc_msg_t msg = {0}; btc_ble_gattc_args_t arg; ESP_BLUEDROID_STATUS_CHECK(ESP_BLUEDROID_STATUS_ENABLED); msg.sig = BTC_SIG_API_CALL; msg.pid = BTC_PID_GATTC; msg.act = BTC_GA...