2 Service/API models
b24idalu edited this page 2026-05-26 12:49:44 +00:00

Service/API models

Sequence Diagram for Temp Sensor

The sequence diagram shows how temperature data moves through the system from sensor to frontend. ReadTempSensorMockup first gets the temperature data from TempSensorMockup via HTTP. The data is then published as JSON through MQTT (Mosquitto) to middleware. The middleware receives the data and stores it in PostgreSQL database. When frontend requests data, the request is sent to TempService. TempService gets the latest temperature data from the database and sends the response back to frontend.