INNER CODE UNIT · Python
stage2
gendigitalinc/ioc · SmarterCoffee/extras/run.py:84
def stage2():
if not change_ssid_tries(UPDATESSID, 10):
print FAIL + "Can't connect to [ %s ]! Enter to continue" % (UPDATESSID) + ENDC
raw_input()
return ""
print "Starting update mode, upload firmware."
es = easy_smarter()
for tries in range(10):
if es.connect():
es.disconnect()
break
time.sleep(1)
es = easy_smarter()
if es.connect():