On 2/28/19 10:53 AM, JH wrote:
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?
No C API, only
D-Bus or command line tools. Your C API would be the
API to whichever D-Bus implementation you choose.
Setting up WiFi can be done without direct D-Bus interaction by using
connmanctl alone. You'd have to generate the commands for system(3) or
the like and process its output. It's a bit messy, but easier than
having to deal with D-Bus, especially if you have never done this
before. You can also use dbus-monitor to learn how connmanctl is
communicating with connmand.
But this approach will only get you so far; at some point you may have
to use the D-Bus interface. It depends on how much control you need.
Julien's suggestion to write a Python prototype is good advice. It is
a lot easier and faster to try out a few things this way than doing it