QUERY · ISSUE
SmartConfig ESP8266 and ESP32
enhancementport-esp8266port-esp32
Add smartconfig capability to micropython for esp8266 and esp32
Add the following to modesp.c
{ MP_ROM_QSTR(MP_QSTR_smartconfig), MP_ROM_PTR(&mp_module_esp_smartconfig) },
Create smartconfig python wrapper. An old example is at https://github.com/mianos/micropython/blob/master/esp8266/mod_esp_smartconfig.c
CANDIDATE · PULL REQUEST
add esp32 smartconfig
port-esp32
#3427
import smartconfig
import network
wlan = network.WLAN(network.STA_IF)
if not wlan.active():
wlan.active(True)
smartconfig.set_type(smartconfig.ESPTOUCH)
smartconfig.start()
while smartconfig.status() != smartconfig.SC_STATUS_LINK_OVER:
pass
smartconfig.stop()
print(smartconfig.get_ssid())
print(smartconfig.get_password())
print(smartconfig.get_phoneip())