Acitvity Diagram for Temp Sensor #85
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We need an activity diagram for the Temp Sensor activity
Parent Issue: #84
Add description in the morning
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.
Assign me
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)".
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.
Looks good!
File to edit the existing diagram.