struct

Matter::Session::Pase::Definitions::StatusReport

Inherits Struct < Value < Object

StatusReport message Sent to indicate success or failure of a protocol operation NOTE: StatusReport is NOT TLV encoded! It's raw binary format: 2 bytes: generalStatus (UInt16) 4 bytes: vendorProtocolId (UInt32) - lower 16 bits = protocol ID, upper 16 bits = vendor ID 2 bytes: protocolStatus (UInt16) N bytes: protocolData (optional)

Constructors

from_bytes(data : Bytes) : StatusReport

Decode from raw binary bytes (NOT TLV!)

Source
new(general_status : UInt16 = 0_u16, protocol_id : UInt16 = 0_u16, vendor_id : UInt16 = 0_u16, protocol_status : UInt16 = 0_u16, protocol_data : Bytes | Nil = nil)
Source

Instance methods

general_status

General status code (SUCCESS = 0)

Source
general_status=(general_status : UInt16)

General status code (SUCCESS = 0)

Source
protocol_data

Optional protocol-specific data

Source
protocol_data=(protocol_data : Bytes | Nil)

Optional protocol-specific data

Source
protocol_id

Protocol ID (lower 16 bits of vendorProtocolId)

Source
protocol_id=(protocol_id : UInt16)

Protocol ID (lower 16 bits of vendorProtocolId)

Source
protocol_status

Protocol-specific status code (SUCCESS = 0 for Secure Channel)

Source
protocol_status=(protocol_status : UInt16)

Protocol-specific status code (SUCCESS = 0 for Secure Channel)

Source
to_bytes

Encode to raw binary bytes (NOT TLV!)

Source
vendor_id

Vendor ID (upper 16 bits of vendorProtocolId)

Source
vendor_id=(vendor_id : UInt16)

Vendor ID (upper 16 bits of vendorProtocolId)

Source