struct
Matter::Session::Pase::Definitions::StatusReport
- Matter::Session::Pase::Definitions::StatusReport
- Struct
- Value
- Object
Overview
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)
Defined in:
matter/session/pase/definitions.crConstructors
-
.from_bytes(data : Bytes) : StatusReport
Decode from raw binary bytes (NOT TLV!)
- .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)
Instance Method Summary
-
#general_status : UInt16
General status code (SUCCESS = 0)
-
#general_status=(general_status : UInt16)
General status code (SUCCESS = 0)
-
#protocol_data : Bytes | Nil
Optional protocol-specific data
-
#protocol_data=(protocol_data : Bytes | Nil)
Optional protocol-specific data
-
#protocol_id : UInt16
Protocol ID (lower 16 bits of vendorProtocolId)
-
#protocol_id=(protocol_id : UInt16)
Protocol ID (lower 16 bits of vendorProtocolId)
-
#protocol_status : UInt16
Protocol-specific status code (SUCCESS = 0 for Secure Channel)
-
#protocol_status=(protocol_status : UInt16)
Protocol-specific status code (SUCCESS = 0 for Secure Channel)
-
#to_bytes : Bytes
Encode to raw binary bytes (NOT TLV!)
-
#vendor_id : UInt16
Vendor ID (upper 16 bits of vendorProtocolId)
-
#vendor_id=(vendor_id : UInt16)
Vendor ID (upper 16 bits of vendorProtocolId)
Constructor Detail
Instance Method Detail
Protocol-specific status code (SUCCESS = 0 for Secure Channel)