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.
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.
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.