Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clash with webserver.h #133

Closed
flatsiedatsie opened this issue Feb 17, 2021 · 1 comment
Closed

Clash with webserver.h #133

flatsiedatsie opened this issue Feb 17, 2021 · 1 comment

Comments

@flatsiedatsie
Copy link

I tried to add Webthings to an existing Arduino sketch that has a built in webserver (ESP32 network camera), and got a lot of this:

In file included from /Users/teefrapsidasie/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer/src/WebServer.h:30:0,
                 from /Users/teefrapsidasie/Documents/Arduino/ttgo_cam_off-mashup-webthings/ttgo_cam_off-mashup-webthings.ino:9:
/Users/teefrapsidasie/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer/src/HTTP_Method.h:5:18: error: redeclaration of 'HTTP_GET'
   HTTP_GET     = 0b00000001,
                  ^
In file included from /Users/teefrapsidasie/Documents/Arduino/libraries/webthing-arduino/Thing.h:19:0,
                 from /Users/teefrapsidasie/Documents/Arduino/ttgo_cam_off-mashup-webthings/ttgo_cam_off-mashup-webthings.ino:3:
/Users/teefrapsidasie/Documents/Arduino/libraries/ESPAsyncWebServer/src/ESPAsyncWebServer.h:62:3: note: previous declaration 'WebRequestMethod HTTP_GET'
   HTTP_GET     = 0b00000001,
   ^
In file included from /Users/teefrapsidasie/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer/src/WebServer.h:30:0,
                 from /Users/teefrapsidasie/Documents/Arduino/ttgo_cam_off-mashup-webthings/ttgo_cam_off-mashup-webthings.ino:9:
/Users/teefrapsidasie/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer/src/HTTP_Method.h:6:18: error: redeclaration of 'HTTP_POST'
   HTTP_POST    = 0b00000010,
                  ^

It's probably obvious that the WebThings library acts as a webserver, but I didn't expect it. I thought it would just generate json, which a webserver could then serve. Not complaining though.

@mrstegeman
Copy link
Contributor

It's pretty clear from the README that it is a web server, so I'd say this is working as expected. What would really help is #118.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants