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 · ISSUE
esp8266: error in building image
When trying to run make with the most recent statem I get an error:
CC modutime.c
modutime.c:122:5: error: initialization discards 'const' qualifier from pointer target type [-Werror]
{ MP_ROM_QSTR(MP_QSTR_ticks_add), MP_ROM_PTR(&mp_utime_ticks_add_obj) },
^
cc1: all warnings being treated as errors
../py/mkrules.mk:47: recipe for target 'build/modutime.o' failed
It looks as if line 122 should read instead:
{ MP_OBJ_NEW_QSTR(MP_QSTR_ticks_add), (mp_obj_t)(&mp_utime_ticks_add_obj) },