> On 29 Jun 2018, at 08:27, Tomasz Siekierda <sierd...@gmail.com> wrote: > > On Thu, 28 Jun 2018 at 22:40, Jason H <jh...@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. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest