Function flipperzero_sys::rpc_system_app_set_error_code

source ·
pub unsafe extern "C" fn rpc_system_app_set_error_code(
    rpc_app: *mut RpcAppSystem,
    error_code: u32,
)
Expand description

Set the error code stored in an RpcAppSystem instance.

The error code can be retrieved by the client at any time by using the GetError request. The error code value has no meaning within the subsystem, i.e. it is only passed through to the client.

§Arguments

  • rpc_app (direction in, out) - pointer to the instance to be modified.
  • error_code (direction in) - arbitrary error code to be set.