2

I am trying to get a web server to run on the ESP12E on the Node MCU variant, and following the example from the esp8266 documentation page here. But the code does not compile, throwing the following error message:

'class WiFiServer' has no member named 'accept'; did you mean '_accept'?

I'm relatively new to MCUs in general, and cannot find a solution for this on any website. Any help would be appreciated.

asked Apr 27, 2022 at 10:17
0

1 Answer 1

2

The 'latest' documentation applies for git master branch.

accept() is ready for the next release of Arduino esp8266. It will be version 3.1.0. Until then you can use server.available(). It works the same way as accept() in ESP8266WiFi library's WiFiServer.

I initiated the addition of server.accept(), because server.available() in esp8266 WiFiServer works as Ethernet library's server.accept(), not as server.available().

answered Apr 27, 2022 at 12:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.