Created
July 6, 2016 13:51
-
-
Save kiok46/69c8d1d9447f4e535132371cedfca0f3 to your computer and use it in GitHub Desktop.
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
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