Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Problem using ESP8266 nodeMCU 1.0 #20

Closed
neckkola opened this issue Sep 6, 2022 · 3 comments
Closed

Problem using ESP8266 nodeMCU 1.0 #20

neckkola opened this issue Sep 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@neckkola
Copy link

neckkola commented Sep 6, 2022

Describe the bug

When using the esp8266 nodemcu 1.0 board, with the esp core installed and 1.9.3 of WiFiWebServer, on compile the WifiWebServer reports "#error Unknown or unsupported board" and fails.

Using Arduino 2.0 rc 9.3.
Installed the esp core. The board is recognized and is selected correctly.

Steps to Reproduce

Sample sketch to reproduce with nodemcu 1.0 (ESP-12E) selected as board.

#include <ESP8266WiFi.h>
#include <WiFiWebServer.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}

Expected behavior

I am making the assumption as the documentation says that the ESP8266 is supported, it should work without modifications.

Actual behavior

The compile fails. I am able to make it work by modifying the WiFiWebServer.hpp to include the following at line 166:
#elif (ESP8266)
#define USE_WIFI_NINA false
// To use the default WiFi library here
#define USE_WIFI_CUSTOM true

Arduino IDE version: 2.0 rc9.3
ESP32 Core Version  3.0.2
OS: Windows 11 Home
@khoih-prog
Copy link
Owner

Hi @neckkola

Thanks for reporting the problem. I just forgot about popular ESP32/ESP8266 recently and therefore the unintended error message.

Please change

#else
#error Unknown or unsupported board
#endif

as follows

#elif !(ESP32 || ESP8266) 

  #error Unknown or unsupported board
  
#endif

I'll fix the issue very soon for next release.

@khoih-prog khoih-prog added the bug Something isn't working label Sep 6, 2022
@neckkola
Copy link
Author

neckkola commented Sep 6, 2022

Thank you so much and for a great product. Have a wonderful day.

@neckkola neckkola closed this as completed Sep 6, 2022
khoih-prog added a commit that referenced this issue Sep 7, 2022
### Releases v1.9.4

1. Restore support to ESP32 and ESP8266. Check [Problem using ESP8266 nodeMCU 1.0 #20](#20)
@khoih-prog
Copy link
Owner

Hi @neckkola

The new WiFiWebServer releases v1.9.4 has just been published.


Releases v1.9.4

  1. Restore support to ESP32 and ESP8266. Check Problem using ESP8266 nodeMCU 1.0 #20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants