# MicroPython ###### tags: `python` `boards` > [TOC] micro core:ESP32 ## Environment ### Thonny IDE ![](https://i.imgur.com/6jgWJNK.png) Firmware installer ![](https://i.imgur.com/kiZKMV1.png) ### uPyCraft IDE https://chrome.google.com/webstore/detail/mqttbox/kaajoficamnjijhkeomgfljpicifbkaf/related?hl=zh-TW ![](https://i.imgur.com/M2IihbK.png) ![](https://i.imgur.com/xQ7eDqu.png) ![](https://i.imgur.com/2bFZcL4.png) ![](https://i.imgur.com/5vQO69Y.png) ---- ## 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