Thanks for sharing your insight experience about connection manager
and ConnMan, the DBus was my original concern, it was designed for
desktop, but I hope that the ConnMan can manage the network interface
switching, we don't have to interact too much after setting up the
configure file in main.conf.
Are you able to set up WiFi SSID and Password via ConnMan C API? I was
using the wap_supplicant shell commands in C++ program, that was a
little bit mess, I wish I can change to use ConnMan API in my C++
Thank you very much and appreciate your comments.
Short answer: don't try implementing it your own way.
On the downside, you *have* to talk to Connman via D-Bus. There is no
C API for Connman. Your D-Bus options for C are libdbus (bugs, bugs,
bugs), GDBus (pulls GLib into your application, which is what we do
and hate), and sd-bus. For C++ there are a few other libraries and
wrappers around the C libraries, but we haven't tried any of them yet.