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
4444
4545 uint32_t status ;
4646 self -> handle = bleio_adapter_add_attribute (
47+ common_hal_bleio_adapter_obj ,
4748 is_secondary ? BLE_TYPE_SECONDARY_SERVICE : BLE_TYPE_PRIMARY_SERVICE ,
4849 uuid , & status );
4950 return status ;
@@ -82,9 +83,10 @@ bool common_hal_bleio_service_get_is_secondary(bleio_service_obj_t *self) {
8283void common_hal_bleio_service_add_characteristic (bleio_service_obj_t * self ,
8384 bleio_characteristic_obj_t * characteristic ,
8485 mp_buffer_info_t * initial_value_bufinfo ) {
85- common_hal_bleio_adapter_obj
86+
8687 //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 );
8890
8991 // for (unsigned int i = 0; i < service->characteristicCount(); i++) {
9092 // BLELocalCharacteristic* characteristic = service->characteristic(i);
You can’t perform that action at this time.
0 commit comments