aboutsummaryrefslogtreecommitdiff
path: root/extmod/modbluetooth.h
diff options
context:
space:
mode:
authorJim Mussared2020-05-12 23:55:49 +1000
committerDamien George2020-06-05 14:08:07 +1000
commit919d640aec637004110d9f4df9814523a3bfd847 (patch)
treebf15b0ddf38534cf10e75bb863456cfc6b74a783 /extmod/modbluetooth.h
parent6a3c89d584db4f14c7e2432b7c5ad87951e6c2d5 (diff)
extmod/modbluetooth: Allow discovery of svc/char by uuid.
In most situations this is a more efficient way of going straight to the service and characteristic you need.
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r--extmod/modbluetooth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h
index 235622389..5d02d96e3 100644
--- a/extmod/modbluetooth.h
+++ b/extmod/modbluetooth.h
@@ -221,10 +221,10 @@ int mp_bluetooth_gap_scan_stop(void);
int mp_bluetooth_gap_peripheral_connect(uint8_t addr_type, const uint8_t *addr, int32_t duration_ms);
// Find all primary services on the connected peripheral.
-int mp_bluetooth_gattc_discover_primary_services(uint16_t conn_handle);
+int mp_bluetooth_gattc_discover_primary_services(uint16_t conn_handle, const mp_obj_bluetooth_uuid_t *uuid);
// Find all characteristics on the specified service on a connected peripheral.
-int mp_bluetooth_gattc_discover_characteristics(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle);
+int mp_bluetooth_gattc_discover_characteristics(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle, const mp_obj_bluetooth_uuid_t *uuid);
// Find all descriptors on the specified characteristic on a connected peripheral.
int mp_bluetooth_gattc_discover_descriptors(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle);