class Matter::DataType::NodeId

Direct Known Subclasses

Defined in:

matter/datatype/node_id.cr

Constant Summary

CAT_PREFIX = 18446744060824649728_u64

CAT NodeId prefix: 0xFFFFFFFD followed by 32-bit CAT value

OPERATIONAL_MAXIMUM = BigInt.new("FFFFFFEFFFFFFFFF", base: 16)
OPERATIONAL_MINIMUM = BigInt.new("0000000000000001", base: 16)

Constructors

Instance Method Summary

Constructor Detail

def self.from_case_authenticated_tag(cat : CaseAuthenticatedTag) : NodeId #

Create NodeId from a CaseAuthenticatedTag Format: 0xFFFFFFFD + 32-bit CAT value


[View source]
def self.new(id : UInt64) #

[View source]
def self.new(slice : Bytes) #

Create NodeId from bytes (big-endian)


[View source]

Instance Method Detail

def brand : String #

[View source]
def extract_as_case_authenticated_tag : CaseAuthenticatedTag #

Extract the CaseAuthenticatedTag from this NodeId Raises if this NodeId is not a CAT-encoded NodeId


[View source]
def get_group_node_id(group_id : UInt16) #

[View source]
def get_random_operational_node_id : NodeId #

[View source]
def hexstring : String #

[View source]
def id : UInt64 #

[View source]
def id=(id : UInt64) #

[View source]
def is_case_authenticated_tag? : Bool #

Check if this NodeId encodes a CaseAuthenticatedTag


[View source]
def to_slice : Bytes #

Serialize to bytes (big-endian)


[View source]