def boot(): esp.osdebug(None) machine.freq() # get the current frequency of the CPU machine.freq(240000000) # set the CPU frequency to 240 MHz print('\n\nStarting WiFi System\n\n') print(wifi.start()) print('\n\nStarting OFFLINE System\n\n') print(off_sys.start())
print("Camera ready?: ", cr) if cr: break time.sleep(2) wc += 1 if wc >= 5: break if not cr: print("Camera not ready. Can't continue!") else: file = open('/structure/logo.png', 'r') logo_img = file.read() file.close() wifi.start() sleep(1) wifi.set_credentials('1255,12551255') credentials_state, cred_ssid, cred_psw = wifi.get_credentials() while credentials_state == False: print('Getting credentials...') credentials_state, cred_ssid, cred_psw = wifi.get_credentials() sleep(1) pass sleep(1) wifi_connected = wifi.connect(cred_ssid, cred_psw) while wifi_connected == False: