Initial commit with action
Some checks failed
Test compiling project / test (push) Failing after 33s
Some checks failed
Test compiling project / test (push) Failing after 33s
This commit is contained in:
11
documentation/api_doc.md
Normal file
11
documentation/api_doc.md
Normal file
@@ -0,0 +1,11 @@
|
||||
## Sensor data API
|
||||
{
|
||||
"voltage": 12.43,
|
||||
"current": 15.2732,
|
||||
"error_code": 2,
|
||||
"level_percent":73.843,
|
||||
"level_cm": 281.3,
|
||||
"top_level_cm": 281.3,
|
||||
"bottom_level_cm": 281.3,
|
||||
"liter": 24000
|
||||
}
|
||||
15
documentation/error_codes.md
Normal file
15
documentation/error_codes.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## Error codes
|
||||
1. Voltage Low
|
||||
2. Voltage High
|
||||
3. Current low
|
||||
4. Current high
|
||||
|
||||
else if (voltage_low) {
|
||||
display_error_code(1);
|
||||
} else if (voltage_high){
|
||||
display_error_code(2);
|
||||
} else if (current_low) {
|
||||
display_error_code(3);
|
||||
} else if (current_high){
|
||||
display_error_code(4);
|
||||
}
|
||||
Reference in New Issue
Block a user