Closed cryptax closed 2 years ago
It is difficult to tell from the information you have shared exactly what the problem is likely to be. It is complaining that it hasn't been able to parse the advertisement data which is made up of service UUIDs, (and if set) local name, and appearance.
If I was to speculate then it is likely to be those values aren't formatted correctly or you have too much information for the advertisement.
Having sudo busctl monitor org.bluez
and sudo btmon
in other terminals may give you more clues as to where the error is.
This has been sat here a while without an update so I'm closing. Please re-open with more information on how to reproduce if it is still an issue
Hello, I mimicked code 'ble_uart.py` to create my own peripheral. But your code works fine, while mine complains "Failed to create entry in database" and "Does not exist". I changed the values for service and characteristic UUIDs. Should they be registered somehow?