Skip to content

Instantly share code, notes, and snippets.

@kiok46
Created July 6, 2016 13:51
Show Gist options
  • Save kiok46/69c8d1d9447f4e535132371cedfca0f3 to your computer and use it in GitHub Desktop.
Save kiok46/69c8d1d9447f4e535132371cedfca0f3 to your computer and use it in GitHub Desktop.
from pyobjus import autoclass
CWInterface = autoclass('CWInterface')
def _enable(self):
'''
Method to turn on the Wi-Fi.
'''
CWInterface.interface().setPower_error_(True, None)
def _disable(self):
'''
Method to turn off the Wi-Fi.
'''
CWInterface.interface().setPower_error_(False, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment