Central.disconnect() is repalced by Bluefruit.disconnect()

This commit is contained in:
hathach committed 2019-01-24 14:10:15 +07:00
1 parent 6a503f397b
commit e200c8249d
9 files changed
+17 -21

No files matched your search

@@ -82,11 +82,6 @@ bool BLECentral::connect(const ble_gap_evt_adv_report_t* adv_report)
return connect(&adv_report->peer_addr);
}
bool BLECentral::disconnect(uint16_t conn_hdl)
{
return ERROR_NONE == sd_ble_gap_disconnect(conn_hdl, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
}
/**
* Check if connected to a specific peripheral
* @param conn_handle