When trying to add a user description to the BLEGattsCharMD() I get this error:
TypeError: in method 'ble_gatts_char_md_t_p_char_user_desc_set', argument 2 of type 'uint8_t const *'
This is a code snippet causing this error:
props = BLEGattCharProps(notify=True, read=True, write=True)
desc_md = BLEGattCharProps(read=True)
user_desc = bytearray([1,2,3])
char_md = BLEGattsCharMD(char_props=props, desc_md=desc_md, user_desc=user_desc)
The error is on this line in ble_driver.py:
char_md.p_char_user_desc = util.list_to_char_array(self.user_desc)
Any ideas?