Module connman_dbus
Get information about your network devices using Connman and DBus.
Requiring this module will return the Connman Manager singleton.
NOTE: connman objects do not implement
org.freedesktop.DBus.Properties.PropertiesChanged
.
Info:
- Copyright: 2017 Stefano Mazzucco
- License: Apache License, version 2.0
- Author: Stefano Mazzucco
Functions
Manager:refresh_services () | Refresh the Manager.services table. |
Tables
Manager | The Connman Manager singleton. |
Manager.services | Available Services. |
Functions
- Manager:refresh_services ()
- Refresh the Manager.services table.
Tables
- Manager
-
The Connman Manager singleton. This table is returned when the module is loaded with
require
.You must use
Manager:SetProperty
to set the writeable properties (you will need to wrap the value of the properti in anlgi.GLib.Variant
), then update them withManager:update_properties
.Manager's properties:
- State: string. One of "offline", "idle", "ready" or "online".
- OfflineMode: boolean
- SessionMode: boolean (deprecated, always false)
For more information, see the connman manager API documentation
- Manager.services
-
Available Services.
Table containing Service objects. They can be accessed either using a numeric index (e.g.
Manager.services[1]
) or using their object path (e.g.Manager.services["/net/connman/service/wifi_123_managed_psk"]
). The lower its numeric index, the higher the priority the service has.For more information, see the connman Service API documentation.
Manager and Services proxy obejcts are updated in real time (provided that the code runs in a GLib main loop, such as the Awesome Window Manager).