Acitvity Diagram for Temp Sensor #85

Closed
opened 2026-04-01 12:34:09 +00:00 by a24vinla · 7 comments
Collaborator

We need an activity diagram for the Temp Sensor activity
Parent Issue: #84

We need an activity diagram for the Temp Sensor activity Parent Issue: #84
Collaborator

Add description in the morning

Add description in the morning
Collaborator

readTempSensorMockup starts by checking if there is an existing database file, according to the comments in the source code there should be a new file for each year. If there is no existing file it connects to the database and creates a new file/table. Once the creation has been made or if a file/table exists, a connection to MQTT is established which then fetches the JSON data from tempSensorMockup. Database connection is established and the JSON data is then added to the table by parameters in order to prevent SQL-injection. readTempSensorMockup has a 5 second delay between readings.

readTempSensorMockup starts by checking if there is an existing database file, according to the comments in the source code there should be a new file for each year. If there is no existing file it connects to the database and creates a new file/table. Once the creation has been made or if a file/table exists, a connection to MQTT is established which then fetches the JSON data from tempSensorMockup. Database connection is established and the JSON data is then added to the table by parameters in order to prevent SQL-injection. readTempSensorMockup has a 5 second delay between readings.
Collaborator

Assign me

Assign me
Collaborator

Activity diagram is not finished.

Everything is Mostly correct but, after Fetch Json data in the activity diagram there is a missing activity called e.g publish to mqtt due to "await mqttClient.PublishAsync(message); (line 76)".

Activity diagram is not finished. Everything is Mostly correct but, after Fetch Json data in the activity diagram there is a missing activity called e.g publish to mqtt due to "await mqttClient.PublishAsync(message); (line 76)".
Collaborator

Thanks for the review!

Edit after review:

readTempSensorMockup starts by checking if there is an existing database file, according to the comments in the source code there should be a new file for each year. If there is no existing file it connects to the database and creates a new file/table. Once the creation has been made or if a file/table exists, a connection to MQTT is established which then convert MQTT message to JSON data from tempSensorMockup. Database connection is established and the JSON data is then added to the table by parameters in order to prevent SQL-injection. readTempSensorMockup has a 5 second delay between readings.

Thanks for the review! Edit after review: readTempSensorMockup starts by checking if there is an existing database file, according to the comments in the source code there should be a new file for each year. If there is no existing file it connects to the database and creates a new file/table. Once the creation has been made or if a file/table exists, a connection to MQTT is established which then convert MQTT message to JSON data from tempSensorMockup. Database connection is established and the JSON data is then added to the table by parameters in order to prevent SQL-injection. readTempSensorMockup has a 5 second delay between readings.
Collaborator

Looks good!

Looks good!
Collaborator

File to edit the existing diagram.

File to edit the existing diagram.
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#85
No description provided.