struct Matter::MDNS::DiscoveredDevice

Overview

Discovered Matter device information

Defined in:

matter/mdns/scanner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(instance_name : String, hostname : String, addresses : Array(Socket::IPAddress), port : Int32, txt_records : Hash(String, String), service_type : ServiceType, expires_at : Time) #

[View source]

Instance Method Detail

def addresses : Array(Socket::IPAddress) #

[View source]
def addresses=(addresses : Array(Socket::IPAddress)) #

[View source]
def commissioning_mode : UInt8 | Nil #

[View source]
def commissioning_mode=(commissioning_mode : UInt8 | Nil) #

[View source]
def device_name : String | Nil #

[View source]
def device_name=(device_name : String | Nil) #

[View source]
def device_type : UInt16 | Nil #

[View source]
def device_type=(device_type : UInt16 | Nil) #

[View source]
def discriminator : UInt16 | Nil #

[View source]
def discriminator=(discriminator : UInt16 | Nil) #

[View source]
def expired? : Bool #

Check if device has expired


[View source]
def expires_at : Time #

[View source]
def expires_at=(expires_at : Time) #

[View source]
def fabric_id : UInt64 | Nil #

Operational-specific fields


[View source]
def fabric_id=(fabric_id : UInt64 | Nil) #

Operational-specific fields


[View source]
def hostname : String #

[View source]
def hostname=(hostname : String) #

[View source]
def instance_name : String #

[View source]
def instance_name=(instance_name : String) #

[View source]
def node_id : UInt64 | Nil #

[View source]
def node_id=(node_id : UInt64 | Nil) #

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]
def product_id : UInt16 | Nil #

[View source]
def product_id=(product_id : UInt16 | Nil) #

[View source]
def service_type : ServiceType #

[View source]
def service_type=(service_type : ServiceType) #

[View source]
def txt_records : Hash(String, String) #

[View source]
def txt_records=(txt_records : Hash(String, String)) #

[View source]
def vendor_id : UInt16 | Nil #

Commissioning-specific fields


[View source]
def vendor_id=(vendor_id : UInt16 | Nil) #

Commissioning-specific fields


[View source]