Qt bluetooth keeps on "ConnectingState"
Unsolved
Mobile and Embedded
-
Hello,
I bought a HM-10 bluetooth module and would like to connect it with an arduino uno board to my pc. I tried connecting it to my phone with an app called serial bluetooth terminal and it works, but when I try to connect to my ubuntu pc, it hangs in the "ConnectingState" and never connects.
I don't really know what uuid to use, I just found this one on the internet but is not working for me:
static const QString serviceUuid(QStringLiteral("00001101-0000-1000-8000-00805F9B34FB")); socket->connectToService(QBluetoothAddress(string), QBluetoothUuid(serviceUuid), QIODevice::ReadWrite);
If you need more code I can post anything.
Many thanks in advance.