On 07/24/2017 02:40 PM, Pierre Couderc wrote:
For example, if want to list the wifi essids available in my C app,
think the best way is connman by the D-Bus.
ConnMan main API is D-Bus. There are some config files which are also
honored but anything dynamic is exposed via the D-Bus API. So there
isn't really a choice :)
Ant I suppose GDbus is the best way.
Depends on your environment. If you are tied to C, the answer is
Is there some hox to to do that ?
We have some Python sample scripts under test, e.g.
This script will print all services. There are also some UI code which
you could look at it:
- GTK based traycon UI for ConnMan
- QT GUI for Connman with system tray icon
- simple ncurses interface to control ConnMan through dbus
There are more available on the internet just search for them.
Hope that helps!