IotWebConf icon indicating copy to clipboard operation
IotWebConf copied to clipboard

Won't compile for Wemos D1 mini any more

Open khReichel opened this issue 6 months ago • 0 comments

I got a compiler error, compiling this library with platformio and Wemos D1

Compiling .pio\build\d1_mini\lib65c\IotWebConf\IotWebConf.cpp.o .pio\libdeps\d1_mini\IotWebConf\src\IotWebConf.cpp: In member function 'void iotwebconf::IotWebConf::stateChanged(iotwebconf::NetworkState, iotwebconf::NetworkState)': .pio\libdeps\d1_mini\IotWebConf\src\IotWebConf.cpp:745:12: error: 'class ESP8266WiFiClass' has no member named 'setHostname' WiFi.setHostname(this->_thingName); ^

platformio.ini

[env:d1_mini] platform = espressif8266 board = d1_mini framework = arduino monitor_speed = 115200 lib_deps = olikraus/U8g2@^2.35.19 wollewald/MCP23017_WE@^1.6.8 EEPROM ESP8266WiFi ESP8266WebServer DNSServer ESP8266mDNS prampec/IotWebConf@^3.2.1

A possible fix: using `// WiFi.setHostname(this->_thingName);

WiFi.hostname(this->_thingName); `

khReichel avatar Aug 10 '24 06:08 khReichel