NodeMCU with MicroPython

/boot.py:

# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
import network
import time
import webrepl
sta = network.WLAN(network.STA_IF)
sta.active(True)
sta.connect('SSID', 'Passphrase')
retries = 3
if retries > 0 or not sta.isconnected():
    time.sleep(1)
    retries -= 1
webrepl.start()
gc.collect()

Discussion

Enter your comment. Wiki syntax is allowed:
J P B V N
 

Linkbacks

Use the following URL for manually sending trackbacks: https://wiki.goatpr0n.de/lib/plugins/linkback/exe/trackback.php/blog:nodemcu_with_micropython
Last modified: le 2017/05/14 10:23