Raspberry Pi - Web Server and API
What will be the output of this Flask route code on a Raspberry Pi?
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/sensor')
def sensor():
data = {'temperature': 22, 'humidity': 60}
return jsonify(data)
# Assume app is running and /sensor is requested