RPi5でSPI通信うまくいかんのでRPi3に温湿度気圧センサ繋いでWebサーバー建ててcurlでGETできるようにした
jj1guj@leafa:~$ curl 192.168.1.10:12345 -v
* Trying 192.168.1.10:12345...
* Connected to 192.168.1.10 (192.168.1.10) port 12345 (#0)
> GET / HTTP/1.1
> Host: 192.168.1.10:12345
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: BaseHTTP/0.6 Python/3.9.2
< Date: Thu, 18 Jul 2024 14:33:38 GMT
< Content-type: application/json;charset=utf-8
<
* Closing connection 0
{"temp": 30.16, "press": 1009.4321484375, "hum": 77.548828125}