Component/bt: fix add whitelist failed

- fix add whitelist failed
- add add whitelist callback func
This commit is contained in:
zhiweijian
2017-09-27 15:29:42 +08:00
parent 30b40a2175
commit cd3d9715bb
13 changed files with 99 additions and 20 deletions

View File

@@ -203,7 +203,9 @@ esp_err_t esp_ble_gap_update_whitelist(bool add_remove, esp_bd_addr_t remote_bda
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
return ESP_ERR_INVALID_STATE;
}
if (!remote_bda){
return ESP_ERR_INVALID_SIZE;
}
msg.sig = BTC_SIG_API_CALL;
msg.pid = BTC_PID_GAP_BLE;
msg.act = BTC_GAP_BLE_ACT_UPDATE_WHITE_LIST;