Skip to main content

send_action

Function send_action 

Source
pub fn send_action(
    host: &str,
    port: u16,
    auth_token: &str,
    action_type: &str,
    target: &str,
    urgency: &str,
) -> Result<()>
Expand description

Send a real authorized action payload to the Android action bridge.

This constructs a payload that mirrors what aios-action produces when forwarding an AuthorizedAction to the Android bridge, including the length-prefixed canonical HMAC-SHA256 signature.