show_ota_view

Function show_ota_view 

Source
pub fn show_ota_view(
    view: &mut dyn View,
    hub: &Hub,
    rq: &mut RenderQueue,
    context: &mut Context,
) -> bool
Expand description

Attempts to show the OTA update view with validation checks.

This function validates prerequisites before showing the OTA view:

  • Checks if WiFi is enabled

If validation fails, a notification is added to the view hierarchy instead.

§Arguments

  • view - The parent view to add either OTA view or notification to
  • hub - Event hub for sending events
  • rq - Render queue for UI updates
  • context - Application context containing settings and WiFi state

§Returns

true if the OTA view was successfully shown, false if validation failed and a notification was shown instead.