INNER CODE UNIT · Python
stage1
gendigitalinc/ioc · SmarterCoffee/extras/run.py:58
def stage1():
if not change_ssid_tries(NORMALSSID, 10):
print FAIL + "Can't connect to [ %s ]! Enter to continue" % (NORMALSSID) + ENDC
raw_input()
return ""
print "Starting update mode, there will be no return code!"
es = easy_smarter()
for tries in range(10):
if es.connect():
es.send_command([0x6D, 0x7E])
print "Done, check coffee machine and connect to update network, press Enter to continue."
es.disconnect()
raw_input()
return ""
time.sleep(1)