Ejemplo n.º 1
0
def connect_network_init(internetcheck=False, backtoAP=False):
    connected = connect_network(internetcheck, backtoAP)

    # section relevant to start of MAstercallback

    logger.info('After init_network. Synch clock and start mastercallback')
    if not selectedplanmod.CheckNTPandAdjustClockandResetSched():
        selectedplanmod.resetmastercallback()

    return connected
Ejemplo n.º 2
0
def savewificonnect(ssid, password):
    wpa_cli_mod.save_network("wlan0", ssid, password)
    connect_network(True, False)
    selectedplanmod.CheckNTPandAdjustClockandResetSched(
    )  # instead of waiting the next Heartbeat, it reset master scheduler if clock changes