Supla 16 X relay -- esp8266 + mcp23017

mlynoza
Posts: 2
Joined: Sat Apr 17, 2021 8:40 am

elmaya wrote: Sat Apr 17, 2021 9:15 am
mlynoza wrote: Sat Apr 17, 2021 8:47 am Hello.
I am doing program compilations and I have such errors. I thought something was wrong with my version of the program and tried on a different computer, but the effect is the same.
What is wrong ?

Code: Select all

In file included from C:\Users\DELL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0,

                 from C:\Users\DELL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63,

                 from C:\Users\DELL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/Arduino.h:32,

                 from sketch\supla_8P_16B_Custom.ino.cpp:1:

C:\Users\DELL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol

   #define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "."  __STRINGIZE(__COUNTER__) "\"")))

                                                                                                                                  ^

e:\arduino\libraries\WiFiManager-0.14/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM'

 const char HTTP_HEAD[] PROGMEM            = "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>";

                        ^

In file included from E:\arduino\projekty\supla_ROLETY\supla_8P_16B_Custom\supla_8P_16B_Custom.ino:10:0:

C:\Users\DELL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266WebServer\src/ESP8266WebServer.h:34:39: error: previous declaration of 'HTTPMethod HTTP_HEAD'

 enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };

                                       ^
update WiFiManager
thank you . it works
miko1282
Posts: 538
Joined: Wed Dec 06, 2017 10:15 pm
Location: Brodnica

Can soft be used to control roller shutters ? If so, I still have a question, how long can the wires be from mcp23017 to physical buttons ?
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

miko1282 wrote: Tue Oct 19, 2021 11:27 am Can soft be used to control roller shutters ? If so, I still have a question, how long can the wires be from mcp23017 to physical buttons ?
@radzik_r has what you are looking for.
viewtopic.php?f=24&t=6935
Post Reply

Return to “Ideas and concepts”