Skip to main content

checks.rs — Diagnostics

Two utility commands for diagnostics and maintenance.

ping() Prints "PING FROM RUST" to the console. Used to verify the Tauri bridge is working.

clear_cache() Deletes all contents of the base_station/ folder inside the system cache directory. Exposed as a callable command so the frontend can trigger a manual cache wipe.

clear_cache_on_startup() is the internal (non-command) version called automatically every time the app launches.

Note for future developers: Clearing the cache on startup is necessary, without doing so the video feed and other assets will not load in some devices.