← index #3427Issue #2575
Off-topic · high · value 0.538
QUERY · ISSUE

SmartConfig ESP8266 and ESP32

openby zaforicopened 2017-11-08updated 2024-10-31
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

closedby robert-hhopened 2016-10-29updated 2016-10-29

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) },

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied