menu_book Course Curriculum (Raspberry Pi) expand_more
Linux & Setup
GPIO Digital I/O
Sensors & Buses
Automation
Networking & Services
HTTP sensor endpoint
Learn HTTP sensor endpoint in Raspberry Pi with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Intermediate
raspberry-pi-031.py
python
from flask import Flask,jsonify
app=Flask(__name__)
@app.get('/temperature')
def temperature(): return jsonify(celsius=24.6)
app.run(host='0.0.0.0',port=8080)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content