abstract class
Matter::Device::Base
- Matter::Device::Base
- Reference
- Object
Overview
Base class for Matter device applications.
Provides:
- Persistent storage + FabricTable
- UDP transport + Protocol MessageHandler
- Default Root Node clusters (including OperationalCredentials)
- DescriptorCluster injection and auto-population
- mDNS responder + lifecycle management (commissioning <-> operational)
Subclasses typically implement:
build_storage_managerdevice_clusters(endpoint-specific clusters)- device identity getters (name/vendor/product/pin/discriminator)
- optional hooks like
started_commissioning_mode
Defined in:
matter/device/base.crConstructors
Instance Method Summary
- #access_control : Cluster::AccessControlCluster
- #basic_info : Cluster::BasicInformationCluster
-
#device_name : String
------------------------------------------------------------------------ Required device identity ------------------------------------------------------------------------
- #discriminator : UInt16
- #fabric_table : FabricTable
- #general_commissioning : Cluster::GeneralCommissioningCluster
- #hardware_version : UInt16
- #hardware_version_string : String
- #hostname : String
- #ip_addresses : Array(Socket::IPAddress)
- #lifecycle : LifecycleManager
- #message_handler : Protocol::MessageHandler
- #operational_credentials : Cluster::OperationalCredentialsCluster
- #port : Int32
- #primary_device_type_id : UInt16
- #product_appearance : Cluster::BasicInformationCluster::ProductAppearanceStruct | Nil
- #product_id : UInt16
- #product_name : String
- #responder : MDNS::Responder
- #serial_number : String | Nil
- #setup_pin : UInt32
- #software_version : UInt32
- #software_version_string : String
-
#start : Nil
Starts mDNS and UDP transport and syncs advertisements for the current fabric set.
- #stop : Nil
- #storage_manager : Storage::Manager
- #transport : Transport::UDPTransport
- #unique_id : String | Nil
-
#update_hostname(hostname : String) : Nil
Updates the default commissioning target hostname used for mDNS advertisements.
- #vendor_id : UInt16
-
#vendor_name : String
------------------------------------------------------------------------ Optional identity / BasicInformation fields ------------------------------------------------------------------------
Constructor Detail
Instance Method Detail
Starts mDNS and UDP transport and syncs advertisements for the current fabric set.
Updates the default commissioning target hostname used for mDNS advertisements. This is useful for platforms that rotate link-layer identifiers or for hosting multiple virtual devices in one executable.