Created
May 17, 2012 20:15
-
-
Save tranthamp/2721326 to your computer and use it in GitHub Desktop.
D-Bus and Connman notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology) | |
# GetProperties | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties | |
# Scan | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan | |
# Disable/Enable wifi | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true | |
# Disable/Enable ethernet | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/ethernet net.connman.Technology.SetProperty string:Powered variant:boolean:true | |
# Connman Manager API examples: (Object Path: /, Interface: net.connman.Manager) | |
dbus-send --system --dest=net.connman --print-reply / net.connman.Manager.GetProperties | |
dbus-send --system --dest=net.connman --print-reply / net.connman.Manager.GetTechnologies | |
dbus-send --system --dest=net.connman --print-reply / net.connman.Manager.GetServices | |
# See: http://git.kernel.org/?p=network/connman/connman.git;a=tree;f=doc;hb=HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can anyone help with a dbus connman example to connect without using an agent to a protected wif-fi with password?
Is it possible without an agent?
Qt 5.15 for Device Creation has a QNetworkSettingsUserAgent which I understand uses dbus internally. I cannot get QNetworkSettingsUserAgent to work. I was hoping the dbus connman API could send password without using using an agent?
My work-around has been to programmatically create:
File: /var/lib/connman/SSID-psk.config