Getting Connman DBus messages
-
Hi,
How can I access connman messages using Qt Dbus? Does anybody have an example or tutorial? I want to receive a signal in the moment that a network cable unplug, for example.
Any tip will be very helpful.
Thanks! -
@marcosbontempo Install the
qdbusviewer
tool on your embedded system. Run it. It will display a list of system and session bus running on that system. Search for Connman and check the interfaces provided by it. I think there should be a signal for network state change. Connect to it and check. You can first try it fromqdbusviewer
itself. Later you can get the exact service, path and interface from that list for your own use. The tool is under <QtDir>/gcc_64/bin directory of your Qt installed system.