add ble_gattc_handle_range_t to clientService

This commit is contained in:
hathach committed 2017-04-13 15:42:58 +07:00
1 parent 08187e3c15
commit cece1ef746
5 files changed
+48

No files matched your search

@@ -42,6 +42,9 @@ BLEClientService* BLEClientService::lastService = NULL;
void BLEClientService::_init(void)
{
_conn_hdl = BLE_CONN_HANDLE_INVALID;
_hdl_range.start_handle = 1;
_hdl_range.end_handle = 0xffff;
}
BLEClientService::BLEClientService(void)
@@ -85,6 +88,12 @@ uint16_t BLEClientService::connHandle(void)
return _conn_hdl;
}
void BLEClientService::setHandleRange(uint16_t start_hdl, uint16_t end_hdl)
{
_hdl_range.start_handle = start_hdl;
_hdl_range.end_handle = end_hdl;
}
void BLEClientService::disconnect(void)
{
_conn_hdl = BLE_CONN_HANDLE_INVALID;