Aleksander Morgado aleksander at aleksander.es
Wed Nov 9 09:36:19 UTC 2016


Hey,

On Wed, Nov 9, 2016 at 10:27 AM, Thinh Nguyen
<nguyentrongthinhit at gmail.com> wrote:
> I’m looking for an example to get signal strength of 3G use Dbus API to
> communication with Modem manager. My problem is how to list all modem device
> (/org/freedesktop/ModemManager1/Modems/#)

You can list the available modems using the standard ObjectManager
interface and its GetManagedObjects() method:

org.freedesktop.DBus.ObjectManager.GetManagedObjects (out
DICT<OBJPATH,DICT<STRING,DICT<STRING,VARIANT>>>
objpath_interfaces_and_properties);

See https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list