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

Provide simple web server example #67

Closed
MabaKalox opened this issue Oct 3, 2022 · 7 comments
Closed

Provide simple web server example #67

MabaKalox opened this issue Oct 3, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@MabaKalox
Copy link

Consider adding simple web server to examples.

@jessebraham
Copy link
Member

I'm not aware of any no_std web servers available on crates.io so we will likely need to implement some web server ourselves, unless there is a package available which I've missed. @bjoernQ can correct me if I'm wrong about this.

I do agree though, eventually it would be nice to demonstrate this functionality.

@jessebraham jessebraham added the enhancement New feature or request label Oct 3, 2022
@MabaKalox
Copy link
Author

I mostly ask it, because I feel totally lost. And have no idea where to start. But for sure will send pull request... if manage to write something.
BTW: smoltcp has an example which called server, but for now I am too dump to understand, what it actually does.

@bjoernQ
Copy link
Contributor

bjoernQ commented Oct 4, 2022

I also don't know any no-std/no-alloc HTTP server but probably writing something very simple should be possible in a few lines of code. (While a real HTTP server is definitely a lot of code)

In general I think at least some example showing a TCP server would be good and something that "looks like" HTTP is probably convenient since it can be tested in a browser.

@taunusflieger
Copy link

I'm also looking for a HTTP server on an ESP32C3. With IDF / RTOS it is available. I'm wondering if it makes sense on no-std without having an async HAL and Wifi - and Embassy as an async application model. Interested to get other people's perspective.

@bjoernQ
Copy link
Contributor

bjoernQ commented Dec 1, 2022

#95 adds an oversimplified example showing a single server-socket used to do something that "looks like" HTTP - a real HTTP server is definitely out-of-scope for this crate

@bjoernQ
Copy link
Contributor

bjoernQ commented Dec 1, 2022

Closing since we now have an example using server sockets - as said a real HTTP server is out-of-scope for this crate

@bjoernQ bjoernQ closed this as completed Dec 1, 2022
@MabaKalox
Copy link
Author

Big thanks!

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

No branches or pull requests

4 participants