# MicroPython ###### tags: `python` `boards` > [TOC] micro core:ESP32 ## Environment ### Thonny IDE  Firmware installer  ### uPyCraft IDE https://chrome.google.com/webstore/detail/mqttbox/kaajoficamnjijhkeomgfljpicifbkaf/related?hl=zh-TW     ---- ## Connect to Internet ```python= import network networkName = '' networkPassword = '' station = network.WLAN(network.STA_IF) station.active(True) station.connect(networkName, networkPassword) while station.isconnected() == False: print("Disconnect") time.sleep(1) print('connect successfully') print(station.ifconfig()) #show network information ``` ## Vendor OS The entity the provider mobile computer's devise operator systems ## Project ### Module [sensor ](/RkAnV53YQcWrWIFBVK0Xog) ### MQTT [Subscribe](/0KE0_yP9SIysZlw0BdVSzA) [Publish](/bVK9V_2hSvy7qKKTfmRycw) ### WEB [Web server](/rQPJyHjZRjOVv0lp6dTuFg) [Web server 2.0](/DlR4wKUORYGrQ9Jv51UNQg) ## Resource link [Tutorial microPython](https://randomnerdtutorials.com/micropython-mqtt-esp32-esp8266/) occur problems eError: name 'os' isn't defined stop the code and press restarted button
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up