-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: in DataUpload, commented unused function & added docs #132
base: main
Are you sure you want to change the base?
Conversation
documented exitState, can_upload, initSuccess
lastConnectTime has no uses outside of this header file. Should I add a commit to remove lastConnectTime, or simply add documentation for it? |
documented initSuccess, and canUpload commented out exitState (unused function)
dataupload returns if data upload is possible, if we should go to redeployment, or sleep, depending on if the recorder has data, if we are connected to cloud services, if we are in water, and if battery has sufficient voltage. illustrated in the docs via a truth table.
This is not ready for review - please resolve merge conflicts before requesting review. |
updated table for DataUpload on return state of smartfin for clarity
* | | Return State | | | | ||
* |----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
* | | data upload is possible | smartfin redeploys | smartfin goes to sleep | | ||
* | required conditions: | All of the following conditions must be met:<br><br>- Recorder has data is TRUE<br>- Connected to cloud is TRUE<br>- In water is FALSE<br>- Sufficient voltage is TRUE | All of the following conditions must be met:<br><br>- Recorder has data is TRUE<br>- Connected to cloud is TRUE<br>- In water is TRUE<br>- Sufficient voltage: TRUE or FALSE | Any one of the conditions are met:<br><br>- Recorder has data is FALSE<br>- Connected to cloud is FALSE<br>- In water is FALSE at the same time sufficient voltage is FALSE | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This table might not be the best way to display this information - keep in mind that sometimes we look at this from the IDE.
Consider a list of conditions which must be true for specific outputs to occur.
documented exitState, can_upload, initSuccess