Model

@Serializable
data class Model

Represents Bluetooth mesh model contained in an element in a node.

Constructors

Link copied to clipboard
constructor(modelId: ModelId, handler: ModelEventHandler? = null)

Constructs a Model

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The bind property contains a list of integers that represents indexes of the ApplicationKey to which this model is bound. Each application key index corresponds to the index values of one of the application key entries in the node’s ApplicationKey list.

Link copied to clipboard

List of ApplicationKey bound to the model.

Link copied to clipboard
Link copied to clipboard

True if the model is a Bluetooth SIG defined model.

Link copied to clipboard

True if the model is a bridge configuration client model.

Link copied to clipboard

True if the model is a bridge configuration server model.

Link copied to clipboard

True if the model is a configuration client model.

Link copied to clipboard

True if the model is a configuration server model.

Link copied to clipboard

True if the model is a directed forwarding configuration client model.

Link copied to clipboard

True if the model is a directed forwarding configuration server model.

Link copied to clipboard

True if the model is a health client model.

Link copied to clipboard

True if the model is a health server model.

Link copied to clipboard

True if the model is a large composition data client model.

Link copied to clipboard

True if the model is a large composition data server model.

Link copied to clipboard

True if the model is a on demand private proxy client model.

Link copied to clipboard

True if the model is a on demand private proxy server model.

Link copied to clipboard

True if the model is a opcodes aggregator client model.

Link copied to clipboard

True if the model is a opcodes aggregator server model.

Link copied to clipboard

True if the model is a private beacon client model.

Link copied to clipboard

True if the model is a private beacon server model.

Link copied to clipboard

True if the model is a remote provisioning client model.

Link copied to clipboard

True if the model is a remote provisioning server model.

Link copied to clipboard

True if the model is a SAR configuration client model.

Link copied to clipboard

True if the model is a SAR configuration server model.

Link copied to clipboard

True if the model is a scene client model.

Link copied to clipboard

The ModelId property contains a 16-bit SigModelId that represents a Bluetooth SIG defined model identifier field or a 32-bit VendorModelId that represents a vendor-defined model identifier.

Link copied to clipboard

Name of the model.

Link copied to clipboard

The publish property contains a Publish that describes the configuration of this model’s publication.

Link copied to clipboard

True if the model requires a device key.

Link copied to clipboard

The subscribe property contains a list of MeshAddress.

Link copied to clipboard

True if the model supports application key binding.

Link copied to clipboard

Functions

Link copied to clipboard
fun copyProperties(model: Model)

Copies the properties from the given model

Link copied to clipboard
fun isBoundTo(applicationKey: ApplicationKey): Boolean

Checks if the given application key is bound to the model.

Link copied to clipboard

Checks if the Model is subscribed to the given Group.

Checks if the Model is subscribed to the given address.