+-------------+
| Start |
+-------------+
|
v
+------------------+
| ESP32 Pinging |
+------------------+
|
|
v
+-----+-----+
| Send |
| Request |
| to API |
+-----+-----+
|
v
+----+----+----+----+----+
| |
"Success" "Error"
| |
v v
+----+----+ +----+----+---+----+
| API | | Save Error in |
| Handling | | Local Storage |
+----+----+ +----+----+---+----+
| |
v v
+-----------+ +--------------------+
| Add Item | | Send Errors to API |
| to DB | | (when connected) |
+-----------+ +--------------------+
| |
| |
v v
+----+----+ +----+----+
| End | | End |
+----+----+ +----+----+