Raspberry Pi: build a sensor REST API with Flask
Expose your Pi's sensors as a JSON REST API with Flask. GET readings, POST control commands, and the structure that keeps it honest.
Tag
3 tutorials
Expose your Pi's sensors as a JSON REST API with Flask. GET readings, POST control commands, and the structure that keeps it honest.
Build a real HTTP API on the ESP32. Route by path, handle GET vs POST, parse JSON bodies, serve JSON responses, and use async handlers when the request rate goes up.
Make the ESP32 talk to real APIs over HTTPS, with proper TLS validation. The right way to send sensor data to a cloud service.