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

@@ -75,6 +75,8 @@ bool BLEDiscovery::_discoverService(uint16_t conn_handle, BLEClientService& svc,
if ( (disc_svc.count == 1) && (svc.uuid == disc_svc.services[0].uuid) )
{
_hdl_range = disc_svc.services[0].handle_range;
svc.setHandleRange(_hdl_range.start_handle, _hdl_range.end_handle);
LOG_LV2(Discover, "[SVC] Found 0x%04X, Handle start = %d, end = %d", disc_svc.services[0].uuid.uuid, _hdl_range.start_handle, _hdl_range.end_handle);
_hdl_range.start_handle++; // increase for characteristic discovery