devicescript
devicescript copied to clipboard
Web server / client support?
With the pico w, is there any chance of getting a simple web server like micro python has?
I know there is the local cloud stuff that is being worked on, but I would love being able to make a simple server or make http requests to things.
Related to MQTT (https://github.com/microsoft/devicescript/issues/395), supporting different networking setups.
We are looking into this for the ESP32.
We have added "fetch" and sockets in the latest release (v2.10.*)
Wow that was fast! That’s so awesome thanks
Any way for me to know when this will be in the docs? I didn’t see any notes on release either
The docs are not quite there yet but the fetch implementation should give you a good idea of how to use sockets.
https://microsoft.github.io/devicescript/developer/net
https://github.com/microsoft/devicescript/blob/main/packages/net/src/fetch.ts
Thanks so much that’s perfect on the client side, just need to learn how I can start a http server next!
Edit: nice I’m reading your socket code. Very helpful