@@ -109,8 +109,8 @@ const mp_obj_property_t bleio_uuid_uuid16_obj = {
109109
110110//| .. attribute:: uuid128
111111//|
112- //| The 128-bit value of the UUID, return as a bytes() .
113- //| Throws AttributeError if this is a 16-bit UUID. (read-only)
112+ //| The 128-bit value of the UUID, returned as bytes.
113+ //| Raises AttributeError if this is a 16-bit UUID. (read-only)
114114//|
115115STATIC mp_obj_t bleio_uuid_get_uuid128 (mp_obj_t self_in ) {
116116 bleio_uuid_obj_t * self = MP_OBJ_TO_PTR (self_in );
@@ -131,26 +131,6 @@ const mp_obj_property_t bleio_uuid_uuid128_obj = {
131131 (mp_obj_t )& mp_const_none_obj },
132132};
133133
134- //| .. attribute:: uuid128_reference
135- //|
136- //| An opaque reference representing the 128-bit UUID. (read-only)
137- //| Returns None if this is a 16-bit UUID.
138- //|
139- STATIC mp_obj_t bleio_uuid_get_uuid128_reference (mp_obj_t self_in ) {
140- bleio_uuid_obj_t * self = MP_OBJ_TO_PTR (self_in );
141- uint32_t reference = common_hal_bleio_uuid_get_uuid128_reference (self );
142- return reference == 0 ? mp_const_none : MP_OBJ_NEW_SMALL_INT (reference );
143- }
144-
145- MP_DEFINE_CONST_FUN_OBJ_1 (bleio_uuid_get_uuid128_reference_obj , bleio_uuid_get_uuid128_reference );
146-
147- const mp_obj_property_t bleio_uuid_uuid128_reference_obj = {
148- .base .type = & mp_type_property ,
149- .proxy = {(mp_obj_t )& bleio_uuid_get_uuid128_reference_obj ,
150- (mp_obj_t )& mp_const_none_obj ,
151- (mp_obj_t )& mp_const_none_obj },
152- };
153-
154134//| .. attribute:: size
155135//|
156136//| Returns 128 if this UUID represents a 128-bit vendor-specific UUID.
@@ -174,7 +154,6 @@ const mp_obj_property_t bleio_uuid_size_obj = {
174154STATIC const mp_rom_map_elem_t bleio_uuid_locals_dict_table [] = {
175155 { MP_ROM_QSTR (MP_QSTR_uuid16 ), MP_ROM_PTR (& bleio_uuid_uuid16_obj ) },
176156 { MP_ROM_QSTR (MP_QSTR_uuid128 ), MP_ROM_PTR (& bleio_uuid_uuid128_obj ) },
177- { MP_ROM_QSTR (MP_QSTR_uuid128_reference ), MP_ROM_PTR (& bleio_uuid_uuid128_reference_obj ) },
178157 { MP_ROM_QSTR (MP_QSTR_size ), MP_ROM_PTR (& bleio_uuid_size_obj ) },
179158};
180159
0 commit comments