File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
devices/ble_hci/common-hal/_bleio Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ uint32_t _common_hal_bleio_service_construct(bleio_service_obj_t *self, bleio_uu
44
44
45
45
uint32_t status ;
46
46
self -> handle = bleio_adapter_add_attribute (
47
+ common_hal_bleio_adapter_obj ,
47
48
is_secondary ? BLE_TYPE_SECONDARY_SERVICE : BLE_TYPE_PRIMARY_SERVICE ,
48
49
uuid , & status );
49
50
return status ;
@@ -82,9 +83,10 @@ bool common_hal_bleio_service_get_is_secondary(bleio_service_obj_t *self) {
82
83
void common_hal_bleio_service_add_characteristic (bleio_service_obj_t * self ,
83
84
bleio_characteristic_obj_t * characteristic ,
84
85
mp_buffer_info_t * initial_value_bufinfo ) {
85
- common_hal_bleio_adapter_obj
86
+
86
87
//FIX how it's done by ArduinoBLE when a service is added.
87
- // uint16_t startHandle = attributeCount();
88
+ // uint16_t startHandle = attributeCount();
89
+ uint16_t start_handle bleio_adapter_num_attributes (common_hal_bleio_adapter_obj );
88
90
89
91
// for (unsigned int i = 0; i < service->characteristicCount(); i++) {
90
92
// BLELocalCharacteristic* characteristic = service->characteristic(i);
You can’t perform that action at this time.
0 commit comments