QLowEnergyController random sudden disconnection
-
wrote on 22 Dec 2020, 15:58 last edited by MarcoChiesi79
Dear all,
I wrote an application for Raspeberry PI 4 based on the classic Bluetooth Low Energy Overview example to catch data from some device. It really does not differ from the example. I have no problem with device who gives data with a single shot (20 bytes), but I often have problem with a device who is giving data with multiple characteristicChanged events. In this case i have to concatenate strings to have the complete string to manage, but often my QLowEnergyController disconnect suddenly, so my string is uncomplete.
Any help would be appreciated.
Thanks
Marco Chiesi -
Dear all,
I wrote an application for Raspeberry PI 4 based on the classic Bluetooth Low Energy Overview example to catch data from some device. It really does not differ from the example. I have no problem with device who gives data with a single shot (20 bytes), but I often have problem with a device who is giving data with multiple characteristicChanged events. In this case i have to concatenate strings to have the complete string to manage, but often my QLowEnergyController disconnect suddenly, so my string is uncomplete.
Any help would be appreciated.
Thanks
Marco Chiesiwrote on 4 Jan 2021, 14:51 last edited by@MarcoChiesi79 said in QLowEnergyController random sudden disconnection:
Dear all,
I wrote an application for Raspeberry PI 4 based on the classic Bluetooth Low Energy Overview example to catch data from some device. It really does not differ from the example. I have no problem with device who gives data with a single shot (20 bytes), but I often have problem with a device who is giving data with multiple characteristicChanged events. In this case i have to concatenate strings to have the complete string to manage, but often my QLowEnergyController disconnect suddenly, so my string is uncomplete.
Any help would be appreciated.
Thanks
Marco ChiesiI can add that the error displayed in the console is
qt.bluetooth.bluez: Aborting onDescWriteFinished