Qt Bluetooth Code
Can some one provide me qt Bluetooth code which works
search for deceives
pair and connect to selected device using rfcomm protocol.
Currently none of the examples that are available in qt 5.5 is working.
Are you on one of the supported platforms?
@RohitIti Not supported on windows.
I posted on this topic yesterday in the lounge so I will jump in on this thread.
So does anyone have any working C++ code on Qt using the windows Bluetooth API? https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.bluetooth.aspx
A simple scanner program would probably be enough to get started.
@Chris-Kawa Hi Chris.I am developing on windows QT. My application will be deployed on any android device. Currently i have written code too search and display all available Bluetooth devices in range. once after selecting the device i am able to pair but i am not able to connect to other(remote) device.
My device Bluetooth is turning off immediately and a pop up appears saying do you want to switch on Bluetooth. after allowing the same , my application crashes.
QT examples are also not working.
@Dr_Firmware Hello Dr_Firmware, Thank you for replying. If i use windows api then i doubt if this will work on any android device after deploying. So i was in search of working code in qt and i will deploy it on android device and test the application.
Can you provide any information on this ?
Thank you very much.
@RohitIti Hi, so I guess I misunderstood you. So you want to develop an android app that uses bluetooth. This should be doable. Although I have no idea how to do it at the moment. I just got qt 5.5 working and created a "hello android" app and simulated on Nexus S AVD. So things are looking up but this is a whole new world for me. If I get anywhere with this I will let you know.