Beispiel #1
0
def connect(options):
    """Uses the ricoh_theta.py script to connect to an access point"""
    camera = Theta(theta_ssid=options.theta_ssid,
                   theta_pw=options.theta_password)
    camera.showState()
    camera.connectToAP(ap_ssid=options.wifi_ssid,
                       ap_pw=options.wifi_password,
                       ap_sec=options.security)
def connect(options):
    """Uses the ricoh_theta.py script to connect to an access point"""
    camera = Theta(theta_ssid=options.theta_ssid, theta_pw=options.theta_password,
                   client_mode=False, show_state_at_init=True)
    camera.connectToAP(ap_ssid=options.wifi_ssid, ap_pw=options.wifi_password,
                       ap_sec=options.security)
    if options.disable_sleep_mode:
        camera.sleepMode(enabled=False)