[Interest] Bluetooth on Qt on Pi (for real this time)
Tomasz Siekierda
sierdzio at gmail.com
Fri Jun 29 09:34:56 CEST 2018
On Fri, 29 Jun 2018 at 09:26, Shawn Rutledge <Shawn.Rutledge at qt.io> wrote:
>
> > On 29 Jun 2018, at 08:27, Tomasz Siekierda <sierdzio at gmail.com> wrote:
> >
> > On Thu, 28 Jun 2018 at 22:40, Jason H <jhihn at gmx.com> wrote:
> > I've used bluetoothctl to pair to my mac, but when I try to get local
> adapters on the Pi from Qt, there are none:
> >
> > log:
> > Local Adapters:
> > ASSERT: "!isEmpty()" in file
> /usr/include/arm-linux-gnueabihf/qt5/QtCore/qlist.h, line 294
> >
> >
> > code:
> > auto localAdapters = QBluetoothLocalDevice::allDevices();
> > qDebug() << "Local Adapters:";
> > for (const auto &adapter: localAdapters) {
> > qDebug() << adapter.address().toString() << adapter.name();
> // <<pairingStatus(adapter.address());
> > }
> >
> > bool result = listen(localAdapters.first().address());
> >
> > Any ideas on what it takes to get it working on a Pi? When I run it on
> my mac, it is fine.
> >
> > BT on Raspberry Pi is very unstable. I've tried to work with it 6 months
> ago and actually abandoned the project because it was practically unusable.
> However, I've noticed they have released a lot of software and firmware
> updates since then. So my first suggestion: upgrade Raspbian (if you are
> using it) to newest version.
>
> Have they updated their Qt version yet? Last time I tried Bluetooth on
> the Pi, a few months ago, they still had 5.7, which is ridiculous IMO. I
> wanted to try BLE, so had to recompile Qt on the Pi. And yeah, BT wasn’t
> stable either.
>
I don't think so, Raspbian usually sticks to the same Qt version for whole
release cycle. So, last Raspbian had Qt 5.2, this one has 5.7 and that's
it. I haven't checked recently, though, I always compile my own anyway.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180629/c53a32ac/attachment.html>
More information about the Interest
mailing list