Connman Wifi Api
-
Hi,
I have development board installed debian and also Qt library.
It has installed ConnMan network-manager.How can i control WiFi from QT?
Thanks,
Jignesh -
Hi,
I have development board installed debian and also Qt library.
It has installed ConnMan network-manager.How can i control WiFi from QT?
Thanks,
Jignesh@Jignesh-Patel As far as I know you can't. You can use WiFi using Qt networking classes, but you cannot control WiFi (switch it on/off, connect to a specific WiFi network,...).
-
Thanks jsulm,
OK,I can not control through QT API.
I have successfully connect, disconnect and give pass key using command line on connman.
But,How Can I use connMan manager command in QT directly to scan, connect and give passkey? -
Thanks jsulm,
OK,I can not control through QT API.
I have successfully connect, disconnect and give pass key using command line on connman.
But,How Can I use connMan manager command in QT directly to scan, connect and give passkey?@Jignesh-Patel You could start connman command line client from Qt (using QProcess) and pass parameters to it and read its output.
Or you can check whether connman provides a library which can be used to do the same. -
You can control WiFi from Qt with connman Qt bindings libconnman-qt but lack of documentation and examples makes it a tad bit harder :)
If choose to go libconnman-qt path I could help you with the basics and maybe dig up some code snippets/examples I wrote. -
@jsulm
Is there any example qt application available for connecting to protected WiFi network using libconnman-qt library ?@James-A I don't know. The only example I see in the repository is https://git.sailfishos.org/mer-core/libconnman-qt/tree/master/examples/counters