Skip to content

Instantly share code, notes, and snippets.

@jcheype
Created March 5, 2011 20:00
Show Gist options
  • Save jcheype/856668 to your computer and use it in GitHub Desktop.
Save jcheype/856668 to your computer and use it in GitHub Desktop.
import dbus
# get connman's dbus interface
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
"org.moblin.connman.Manager")
manager.ConnectService(({ "Type": "wifi", "Mode": "managed",
"SSID": ssid,
"Security": security,
"Passphrase": key }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment