Commit graph

13 commits

Author SHA1 Message Date
Yvan
6874cb7944 ignore changes to the wifi passwords.... does this even work as intended.. 2025-03-17 17:27:24 +00:00
Yvan
85624f880e move the wifi details into files 2025-03-17 17:25:40 +00:00
Yvan
c49b0a0bd1 Now returning all the data with a single get handler that returns a list
of lists (because I cannot work out how to make it do a dictionary).

Note that also some network stuff is faffed with, been having some local
network glitches including DHCP just not working for some reason.
2025-03-17 17:01:00 +00:00
Yvan
ce15f3d373 Now also exposing the humidity and temperature via web requests. 2025-03-17 14:49:58 +00:00
Yvan
76329ee8ae Update to explain what I needed to go to make this compile due to conflict in crates.io versions of embassy and picoserve 2025-03-17 13:51:36 +00:00
Yvan
7ef2f97bff Update the README for this project as it is actually now a CO2 PPM monitor, dupicated from the original meat-pi code. 2025-03-17 13:19:21 +00:00
Yvan
07959bf1b7 Just cleaning up the code, no functional changes. 2025-03-17 12:56:49 +00:00
Yvan
a77576b26a IT WORKS! OK, for small values of works, and the code is a mess.
I just got a SDC40 CO2 PPM sensor in the post and I wanted to give that
some basic verification testing... so I hooked it up to the Pico W and
and found a libscd Rust library. I got this successfully reading data,
but then I wanted to get that data available to serve via a HTTP
request. This took a long time to work out... days 2 to 5 of my Rust
journey thus far.

This checkin is lilted with all the detritus of the learning process,
lots of commented out failed attempt code... next job is to clean up the
state of it before further implementation.
2025-03-16 23:02:06 +00:00
Yvan
bd9389cfd5 The Pico W now serves a basic HTML page.
This has not been so simple. The only way I could find to make picoserve
and embassy compatible was to get a local copy of picoserve and change
its embassy dependencies to use git as their source. Otherwise there are
conflicts about embassy-timer-driver versions. Using picoserve also
required changing my Rust "channel" to "nightly". A bunch of stuff I
am not keen on, but necessary to progress rather than get bogged down in
build system meta.

Meanwhile also I've changed this to use a static IP at 192.168.3.14 for
now. For currently unknownr reasons the loop waiting for the DHCP lease
to work isn't exiting. I have rebooted the DHCP server and that didn't
help and given the WiFi on the Pico W is working I don't really know
whats up.
2025-03-14 17:42:07 +00:00
Yvan
f5ce5e7958 forgot the .cargo/config.toml file 2025-03-13 13:50:24 +00:00
Yvan
dd75b23619 Checking in initial baseline for project based on a combo
of Rust templates and content from the embassy project
and including my initial merging of the wifi_tcp_server,
usb_serial, and blinky sample code.
2025-03-13 13:28:48 +00:00
Yvan Seth
47320978b3
Create README.md
set up
2025-03-13 13:24:56 +00:00
Yvan Seth
a47f2d675f
Initial commit 2025-03-13 13:24:09 +00:00