Skip to main content

uart_env

Function uart_env 

Source
pub async fn uart_env(
    param: UartParam,
    a: ServEnvironmentRequest<'_, '_>,
    config: &SunsetMutex<SSHStampConfig>,
    ctx: &mut EventContext<'_>,
) -> Result<(), Error>
Expand description

Handles the SSH_STAMP_UART_* environment variable requests.

The bridge configures its UART once at boot, so a change is persisted and applied after the reset triggered on the next shell request, like the WiFi settings.

ยงErrors

Returns an error if SSH protocol operations fail.