-
Notifications
You must be signed in to change notification settings - Fork 2
Feature: Add basic REST Webserver #25
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
base: main
Are you sure you want to change the base?
Conversation
| [submodule "ext/mongoose"] | ||
| path = ext/mongoose | ||
| url = https://github.com/cesanta/mongoose.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submodules vs. FetchContent - not sure when to use which?
| // clang-format off | ||
| #include "ch.h" | ||
| #include "hal.h" | ||
| // clang-format on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would it be without the exception? I think it should be <ch.h> and <hal.h> because they will never be found locally.
| if (mg_match(hm->method, mg_str("POST"), NULL)) { | ||
| if (mg_match(hm->uri, mg_str("/api/robot_type"), NULL)) { | ||
| File robot_type; | ||
| robot_type.open("robot_type.txt"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in Discord, I think it might be more future-proof to use JSON everywhere, for example to have subtypes like Worx with or without knob.
| /* Define LWIP_ERRNO_STDINCLUDE if you want to include <errno.h> here */ | ||
| #ifdef LWIP_ERRNO_STDINCLUDE | ||
| #include <errno.h> | ||
| #include <sys/errno.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks strange and generally I wouldn't modify the included projects... but I don't want to spend time trying to figure out a better solution. I see you already tried.
No description provided.