MatterEx.Protocol.StatusReport (matter_ex v0.4.0)

Copy Markdown View Source

Matter StatusReport wire format codec.

StatusReport uses a fixed binary layout (NOT TLV):

<<general_code::16-little, protocol_id::32-little, protocol_code::16-little>>

Used as the final message in PASE/CASE session establishment and for general protocol-level status reporting.

Summary

Types

t()

@type t() :: %MatterEx.Protocol.StatusReport{
  general_code: non_neg_integer(),
  protocol_code: non_neg_integer(),
  protocol_id: non_neg_integer()
}

Functions

close_session()

decode(arg1)

@spec decode(binary()) :: {:ok, t()} | {:error, :invalid_status_report}

Decode a StatusReport from binary.

encode(sr)

@spec encode(t()) :: binary()

Encode a StatusReport to binary.

general_failure()

general_success()

invalid_parameter()

no_shared_trust_roots()

session_establishment_success()