prampec / IotWebConf

ESP8266/ESP32 non-blocking WiFi/AP web configuration Arduino library
MIT License
530 stars 140 forks source link

Request Handler not found #190

Closed Razsmithii closed 3 years ago

Razsmithii commented 3 years ago

I´m using this really cool tool for some monthes now and tried to integrate it into to another, more complex sketch. Connecting to WIFI works, but it´s not possible to open the Webserver on own AP nor connected to another wifi. I use exactly the same fragemts of code in a single sketch (example3: CustomParameters) without having any trouble. The error code i get via Serial Debug is: dhcps: send_offer>>udp_sendto result 0 [E][WebServer.cpp:617] _handleRequest(): request handler not found

What am i doing wrong? Is this the correct forum to answer this question? If not, please be indulgend with me :-)

prampec commented 3 years ago

Please re-check if server URL handlers are configured properly, as seen in the examples. E.g.:

  server.on("/", handleRoot);
  server.on("/config", []{ iotWebConf.handleConfig(); });
  server.onNotFound([](){ iotWebConf.handleNotFound(); });

It is very hard to say anything without seeing your code.

Razsmithii commented 3 years ago

Thanks for you fast answer. I double checked - URL Handlers are configured correctly. It seems Bluetooth Serial combined with Webserver is the problem. As soon as "ESP_BT.begin()" is not called, everything works as it should be. In some of my other sketches it works togther (BT and Wifi). without Problems. I cant' recognize any Paradigma. I already updated sdkconfig and preferred WiFi. Are there already any known similar problems? As i see, this could be a coexistance problem caused of using the same antenna for BT and WIFI.

iw2lsi commented 3 years ago

Hi Razsmithii,

I'm facing the same problems while using ESP BT (classic)... did you found a solutions at the end ?

    tnx,

            Giampaolo