MicroPython networking — WiFi STA/AP, HTTP requests, MQTT pub/sub, BLE, NTP time sync, WebSocket.
Code templates for network communication on MicroPython devices. WiFi and network operations are Cautious tier — inform the user before connecting.
WiFi credentials should never be hardcoded in files saved to the device. Use variables or prompt the user for values.
import network, time, json