Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5369

Other RP2040 boards • Re: RP2040 with ESP8285 on board

$
0
0
I was to implement the HTTP server but I am pretty sure somehow has implemented this already over UART....

So far I haven't found anything, because normally all of the implementation uses the Socket or other Network libraries but here I am reading/writing from the UART (connected to the ESP8285 chip).

I am reading/writting without any problem....
This ESP8285 has a SERVER mode where I can configure to read all the TCP/IP request (like Listening), which means, from the browser I can send a GET to the ESP8285 which I can read the payload (and other info) from my python code reading the buffers.

Then, I can "respond" back, writting to the UART... but this is quite painful to have a light HTTP server.

For my project I can manage as I only need one API request with some response, but if there is out there a HTTP Sever which I can reimplement the read and write to the buffer/socket so I can implement them the UART commands, would be far more simple, apart of all the HTTP route/api being properly implemented.....
Well, I ended implementing basic HTTP response for these two temp sensor exposing a httt:/..../metrics Seems to work fine.
Will upload all the code somewhere it gitlab in case someone wants to use it.

Statistics: Posted by willthrom — Wed Jan 03, 2024 10:30 am



Viewing all articles
Browse latest Browse all 5369

Trending Articles