BLEMeshJS
API

Core Package

Reusable mesh engine types, messages, bearers, and provisioning primitives shared across runtimes.

This page is auto-generated from packages/core/src/** and the public exports exposed by @blemeshjs/core.

Update TSDoc comments in source, then run yarn workspace docs api:generate. Normal docs dev, build, and types:check runs regenerate these pages automatically.

Package overview

FieldValue
Package@blemeshjs/core
Entry pointpackages/core/src/index.ts
Source treepackages/core/src/**

Export map

ExportKindSummary
AddressRangeClassThe range of addresses of Unicast or Group type.
addressRangeContainsFunctionNo description yet.
ApplicationKeyClassApplication Keys are used to encrypt mesh messages on Access Layer. The Application Key is 128-bit long and is bound to a single Network Key. To use the Application Key, the bound Network Key must be used to encrypt the message on Network Layer. Each key is identified by a KeyIndex. There can be up to 4095 Application Keys in a mesh network. AID (Application Key identifier) is derived from the Application Key. The key can be change using Key Refresh Procedure (KRP).
ApplicationKeysUnknownNo description yet.
AuthActionType aliasA set of authentication actions aiming to strengthen device provisioning security.
AuthenticationMethodUnknownNo description yet.
AuthenticationMethodTypeEnumerationNo description yet.
BaseGattProxyBearerClassBase implementation for GATT Proxy bearer.
BearerClassThe Bearer object is responsible for sending and receiving the data to the mesh network.
BearerDataHandlerClassA bearer data handler processes mesh messages received by the bearer.
BearerHandlerClassThe bearer handler will receive events when the bearer has been opened or closed.
CapabilitiesReceivedType aliasProvisioning Capabilities were received.
CompleteType aliasThe provisioning process is complete.
CompositionDataPageClassA base protocol of a single Page of Composition Data. The Composition Data state contains information about a Node, the Elements it includes, and the supported models. The Composition Data is composed of a number of pages of information.
ConfigAppKeyAddClassA ConfigAppKeyAdd is an acknowledged message used to add an ApplicationKey to the AppKey List on a Node and bind it to the NetworkKey identified by NetworkKey.index. The added Application Key can be used by the Node only as a pair with the specified Network Key. The Application Key is used to authenticate and decrypt messages it receives, as well as authenticate and encrypt messages it sends.
ConfigAppKeyDeleteClassA ConfigAppKeyDelete is an acknowledged message used to delete an ApplicationKey from the AppKey List on a Node. To remove the key from the local Node you may use MeshNetwork.removeApplicationKey(). WARN: It is not guaranteed, that the target Node will remove the key from its AppKey List. To make sure the Node gets excluded, use ConfigAppKeyUpdate to update the value of the key and skip the Node when distributing the new value. After the Key Refresh Procedure is complete, the target Node will effectively be excluded from the mesh network.
ConfigAppKeyGetClassA ConfigAppKeyGet is an acknowledged message used to report all ApplicationKeys known to the Node that are bound to the given NetworkKey. The response to this message is a ConfigNetKeyList message.
ConfigAppKeyListClassA ConfigAppKeyList is an unacknowledged message reporting all ApplicationKeys bound to requested NetworkKey that are known to the Node.
ConfigAppKeyStatusClassA ConfigAppKeyStatus is an unacknowledged message used to report a status for the requesting message, based on the NetworkKey.index identifying the NetworkKey on the NetKey List and on the ApplicationKey.index identifying the ApplicationKey on the AppKey List.
ConfigCompositionDataGetClassNo description yet.
ConfigCompositionDataStatusClassNo description yet.
ConfigDefaultTtlGetClassNo description yet.
ConfigDefaultTtlStatusClassNo description yet.
ConfigModelAppBindClassNo description yet.
ConfigModelAppStatusClassNo description yet.
ConfigModelAppUnbindClassNo description yet.
ConfigNetKeyAddClassA ConfigNetKeyAdd is an acknowledged message used to add an NetworkKey to the NetKey List on a Node. The Network Key is used to authenticate and decrypt messages it receives, as well as authenticate and encrypt messages it sends.
ConfigNetKeyDeleteClassConfigNetKeyDelete is an acknowledged message used to delete an NetworkKey from the NetKey List on a Node. To remove the key from the local Node you may use MeshNetwork.remove(). WARN: It is not guaranteed, that the target Node will remove the key from its NetKey List. To make sure the Node gets excluded, use ConfigNetKeyUpdate to update the value of the key and skip the Node when distributing the new value. After the Key Refresh Procedure is complete, the target Node will effectively be excluded from the mesh network.
ConfigNetKeyStatusClassA ConfigNetKeyStatus is an unacknowledged message used to report the status of the operation on the NetKey List.
ConfigNodeResetClassNo description yet.
ConfigNodeResetStatusClassNo description yet.
ElementClassAn Element is an addressable entity within a Node. Each Node has at least one element, the Primary Element, and may have one or more additional secondary elements. The number and structure of elements is static and does not change throughout the lifetime of a node (that is, as long as the node is part of a network). The Primary Element is addressed using the first Unicast Address assigned to the Node during provisioning. Each additional secondary element is addressed using the subsequent addresses. These unicast element addresses allow nodes to identify which element within a node is transmitting or receiving a message.
ElementDataClassNo description yet.
ElementsUnknownNo description yet.
FailedType aliasThe provisioning has failed because of a local error.
GattBearerClassThe GATT bearer is responsible for sending and receiving mesh messages to and from the GATT Proxy Node.
GattBearerErrorClassSet of errors that may be thrown from the GATT bearer.
GattBearerHandlerClassThis class extends BearerHandler and adds GATT specific event handlers.
GenericOnOffGetClassNo description yet.
GenericOnOffSetClassNo description yet.
GenericOnOffStatusClassNo description yet.
GroupClassThe Group object represents a user-defined group of Nodes, identified by Group Address or Virtual Label. A group may be given a human-readable name. In Mesh Configuration Database a Group may have a parent Group, but this is not reflected in the Mesh Profile specification. Groups cannot form circle relationships.
HeartbeatMessageClassNo description yet.
InputActionUnknownNo description yet.
InputOobInterfaceNo description yet.
InputOobActionsClassA set of supported Input Out-of-band actions.
isGroupRangesFunctionNo description yet.
isUnicastRangesFunctionNo description yet.
isValidRangesFunctionNo description yet.
IvIndexObserverClassAn observer class for the IV Index changes in the mesh network. WARNING: This class is for advanced users and should be used with caution. The IV Index is managed internally by the library. Tracking changes to the IV Index is not necessary for most applications.
mergedRangesFunctionNo description yet.
MeshAddressClassNo description yet.
MeshBearerClassA mesh bearer is used to send mesh messages to provisioned nodes.
MeshDataClassThe Mesh Network configuration saved internally. It contains the Mesh Network and additional data that are not in the JSON schema, but are used by in the app.
MeshDataCtorType aliasNo description yet.
MeshNetworkClassNo description yet.
MeshNetworkCtorType aliasNo description yet.
MeshNetworkManagerClassThe main object responsible for managing the mesh network.
MessageHandleClassNo description yet.
ModelClassA Model defines the basic functionality of a Node. A Node may include one or more Element, each with one or mode models. A model defines the required states, the messages that act upon those states, and any associated behavior. Two Models with the same Model.modelId cannot be located on the same Element. A Model may extend another Model. Models in Extend relationship may share states. A Model which does not extend any other Model is called a base Model. Models in Extend relationship located on the same Element share the Subscription List.
ModelDataClassNo description yet.
ModelHandlerClassModel handler defines the functionality of a Model on the Local Node. Model Delegates are assigned to the Models during setting up the MeshNetworkManager.localElements. The Model Delegate must declare a map of mesh message type supported by this Model. Whenever a mesh message matching any of the declared Op Codes is received, and the Model instance is bound to the Application Key used to encrypt the message, one of the message handlers will be called: * ModelDelegate.modelDidReceiveUnacknowledgedMessage() * ModelDelegate.modelDidReceiveAcknowledgedMessage() * ModelDelegate.modelDidReceiveResponse() The Model Delegate also specifies should the Model support subscription and defines publication composer for automatic publications.
NetworkIdentityInterfaceThe Network Identity contains information from Network Identity or Private Network Identity beacon. Network Identities can be matched to Network Keys in the network.
NetworkKeyClassNo description yet.
NetworkKeyDerivativesClassNo description yet.
NetworkKeysUnknownNo description yet.
NetworkParametersClassNo description yet.
NetworkParametersConfigClassThe builder allows easy configuration of NetworkParameters.
NetworkTransmitClassThe object represents parameters of the transmissions of network layer messages originating from a mesh node.
NodeClassNo description yet.
NodeIdentityInterfaceThe Node Identity contains information from Node Identity or Private Node Identity beacon. It can be used to match advertising device to a specific Node in the network.
NodeKeyClassNo description yet.
NodesUnknownNo description yet.
NoOobInterfaceNo description yet.
OobTypeClassA set of supported Out-Of-Band types.
OutputActionUnknownNo description yet.
OutputOobInterfaceNo description yet.
OutputOobActionsClassA set of supported Output Out-of-band actions.
Page0ClassComposition Data Page 0 shall be present on a Node. Composition Data Page 0 shall not change during a term of a Node on the network.
PBGattBearerClassThe PB GATT bearer is responsible for sending and receiving mesh provisioning messages to and from the GATT Proxy Node.
PduTypeUnknownNo description yet.
PduTypesClassA set of supported PDU types by the bearer object.
PeriodClassThe Publishing Period state determines the interval at which status messages are periodically published by a Model.
PrivateNetworkIdentityClassRepresentation of Private Network Identity advertising packet.
PrivateNodeIdentityClassRepresentation of Private Node Identity advertising packet.
ProvisionerClassRepresentation of a Provisioner in the mesh network. A Provisioner is an entity that is able to provision other device to the mesh network by assigning them Unicast Addresses and providing a Network Key in a secure way. A Provisioner with a Unicast Address assigned may also configure devices and becomes a Node of a network on its own. Each Provisioner has assigned 3 ranges: * Unicast Address range - set of Unicast Addresses which may assign to new Nodes during provisioning, * Group Address range - set of Group Addresses which the Provisioner may use to define new groups. * Scene range - set of Scene numbers which it may use to define new scenes. The Provisioner should not assign addresses from outside of its ranges to avoid conflicts with other Provisioners.
ProvisioningType aliasProvisioning has been started.
ProvisioningBearerClassA provisioning bearer is used to send provisioning PDUs to unprovisioned devices.
ProvisioningCapabilitiesUnknownNo description yet.
ProvisioningErrorClassSet of errors which may be thrown during provisioning a device.
ProvisioningHandlerType aliasThe handler for receiving provisioning events. The handler must also provide user input during the provisioning process related to Input or Output OOB.
ProvisioningManagerClassThe manager responsible for provisioning a new device into the mesh network. To create an instance of a ProvisioningManager use MeshNetworkManager.provisionUnprovisionedDevice(). Provisioning is initiated by calling identifyAndAttractFor(). This method will make the provisioned device to blink, make sound or attract in any supported way, so that the user could verify which device is being provisioned. The target device will return ProvisioningCapabilities, returned to handler as ProvisioningState.capabilitiesReceived(). User needs to set the unicastAddress (by default set to suggestedUnicastAddress), networkKey and call provision(). If user interaction is required during provisioning process corresponding delegate callbacks will be invoked. The provisioning is completed when ProvisioningState.complete state is returned.
ProvisioningStateUnknownNo description yet.
ProvisioningStateTypeEnumerationNo description yet.
ProxyProtocolHandlerClassThis helper class allows segmentation and reassembly (SAR) using the Proxy Protocol defined in Bluetooth Mesh Profile 1.0.1.
PublicKeyUnknownThe type of Device Public key to be used. This enumeration is used to specify the Public Key type during provisioning in ProvisioningManager.provision().
PublicKeyMethodUnknownNo description yet.
PublicKeyTypeClassThe type of Public Key information.
PublicNetworkIdentityClassRepresentation of Network ID advertising packet.
PublicNodeIdentityClassRepresentation of Node Identity advertising packet.
PublishClassThe Publishing object defines the publication configuration for a Model. When a Model is configured for publishing, it will sent messages whenever a state of the Model has changed, or periodically. The Publish object defines the destination address and the Application Key to encrypt the messages, together with other settings. To set the publication on a Model, send the ConfigModelPublicationSet or ConfigModelPublicationVirtualAddressSet messages to the Configuration Server model on the Node. The Set messages are confirmed with a ConfigModelPublicationStatus.
rangesContainsFunctionNo description yet.
ReadyType aliasProvisioning Manager is ready to start.
RemoteProvisioningErrorUnknownNo description yet.
RequestingCapabilitiesType aliasThe manager is requesting Provisioning Capabilities from the device.
SceneClassA Scene represents a set of states stored with a Scene Number. A Scene is identified by a SceneNumber and may have a human-readable name associated. A Node having a Scene Server model can store the states of other models and restore them on demand. A Node with a Scene Client can recall Scenes on other Nodes. Use Scene.elements to get list of `Element's with the given Scene in their Scene Register.
SceneRangeClassThe range of SceneNumbers assigned to a Provisioner.
serviceDataFunctionNo description yet.
StaticOobInterfaceNo description yet.
StoredWithSceneModelHandlerClassThe Model Handler which should be used for Models that allow storing the state with a Scene. In addition to handling messages, the Model Handler should also store and recall the current state whenever StoredWithSceneModelHandler.store() and StoredWithSceneModelHandler.recall() calls are received. Whenever the state changes due to any other reason than receiving a Scene Recall message, the handler should call StoredWithSceneModelHandler.networkDidExitStoredWithSceneState() to clear the Current State in the Scene Server model.
TransmitterClassA transmitter is responsible for delivering messages to the mesh network.
UnknownNodeClassA class representing an unknown Node connected as a GATT Proxy Node. An Unknown Node is a Node from which a message Proxy Configuration has been received, but the mesh network has no information about it. The Unknown Node has fixed security level set to Security.insecure, a single empty Element and only one NetworkKey, the one used to encrypt the Proxy Configuration message. All other properties are unknown. NOTE: It is not possible to request its Composition Data, as the Device Key is not known.
UnprovisionedDeviceClassA class representing an unprovisioned device.
unprovisionedDeviceUUIDFunctionNo description yet.

Exported API

AddressRange

Kind: Class

Source: packages/core/src/mesh-models/address-range.ts#L43

The range of addresses of Unicast or Group type.

class AddressRange extends unknown<Address>

Constructors

NameSignatureDescription
constructorAddressRange(): AddressRange;No description yet.

Properties

NameTypeDescription
allGroupAddressesAddressRangeA range containing all Group Addresses. This range does not exclude Fixed Group Addresses or Virtual Addresses.
allUnicastAddressesAddressRangeA range containing all valid Unicast Addresses.
highAddressunknownNo description yet.
isGroupRangeunknownNo description yet.
isUnicastRangeunknownNo description yet.
isValidunknownNo description yet.
lowAddressunknownNo description yet.

Methods

NameSignatureDescription
decodedecode(jv: Record<string, unknown>): AddressRange;No description yet.
fromAddressfromAddress(address: Address, elementsCount: UInt8): AddressRange;No description yet.
fromNodefromNode(node: Node): AddressRange;No description yet.

addressRangeContains

Kind: Function

Source: packages/core/src/mesh-models/address-range.ts#L36

function addressRangeContains(range: AddressRange[], value: UInt16): boolean;

ApplicationKey

Kind: Class

Source: packages/core/src/mesh-models/application-key.ts#L24

Application Keys are used to encrypt mesh messages on Access Layer. The Application Key is 128-bit long and is bound to a single Network Key. To use the Application Key, the bound Network Key must be used to encrypt the message on Network Layer. Each key is identified by a KeyIndex. There can be up to 4095 Application Keys in a mesh network. AID (Application Key identifier) is derived from the Application Key. The key can be change using Key Refresh Procedure (KRP).

class ApplicationKey extends unknown

Constructors

NameSignatureDescription
constructorApplicationKey($name: string, $index: KeyIndex, key: Data, $boundNetworkKeyIndex: KeyIndex): ApplicationKey;No description yet.

Properties

NameTypeDescription
$indexKeyIndexNo description yet.
$keyDataNo description yet.
$namestringNo description yet.
aidUInt8No description yet.
meshNetworkMeshNetworkNo description yet.
oldAidanyNo description yet.
boundNetworkKeyunknownNo description yet.
boundNetworkKeyIndexunknownNo description yet.
keyunknownNo description yet.
oldKeyunknownNo description yet.

Methods

NameSignatureDescription
bindToNetworkKeybindToNetworkKey(networkKey: NetworkKey): any;No description yet.
equalsequals(other: ApplicationKey): boolean;No description yet.
isBoundToModelisBoundToModel(model: Model): boolean;No description yet.
isBoundToNetworkKeyisBoundToNetworkKey(networkKey: NetworkKey): boolean;No description yet.
isUsedInisUsedIn(meshNetwork: MeshNetwork): boolean;No description yet.
toStringtoString(): string;No description yet.
decodedecode(jv: Record<string, unknown>): ApplicationKey;No description yet.
withPropertieswithProperties(name: string, index: KeyIndex, key: Data, networkKey: NetworkKey): any;No description yet.

ApplicationKeys

Kind: Unknown

Source: packages/core/src/mesh-models-array/application-keys.ts#L6

AuthAction

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L106

A set of authentication actions aiming to strengthen device provisioning security.

type AuthAction = { action: "provideStaticKey"; callback: (data: Data) => void } | { action: "provideNumeric"; callback: (val: Long) => void; maximumNumberOfDigits: UInt8; outputAction: OutputAction } | { action: "provideAlphanumeric"; callback: (text: string) => void; maximumNumberOfCharacters: UInt8 } | { action: "displayNumber"; inputAction: InputAction; value: BigUInt } | { action: "displayAlphanumeric"; text: string };

AuthenticationMethod

Kind: Unknown

Source: packages/core/src/provisioning/oob.ts#L215

AuthenticationMethodType

Kind: Enumeration

Source: packages/core/src/provisioning/oob.ts#L151

enum AuthenticationMethodType {
  inputOob,
  noOob,
  outputOob,
  staticOob,
}

Members

NameDescription
inputOobInput OOB authentication. User need to input a value displayed on the Provisioner's screen on the Unprovisioned Device. The value to display to the user will be given using ProvisioningDelegate.authenticationActionRequired(). When user completes entering the value ProvisioningDelegate.inputComplete() will be called.
noOobNo OOB authentication. WARN: This method is considered not secure.
outputOobOOB authentication. The Provisionee will signal a random value using specified method. The value should be provided during provisioning using ProvisioningDelegate.authenticationActionRequired().
staticOobStatic OOB authentication. User will be asked to provide 16 or 32 byte hexadecimal value. The value can be read from the device, QR code, website, etc. See UnprovisionedDevice.oobInformation for location.

BaseGattProxyBearer

Kind: Class

Source: packages/core/src/bearer/gatt/base-gatt-proxy-bearer.ts#L34

Base implementation for GATT Proxy bearer.

class BaseGattProxyBearer<Service> extends any implements unknown, unknown

Constructors

NameSignatureDescription
constructorBaseGattProxyBearer<Service>(name: string | undefined, uuid: UUID, centralManager: CBCentralManager, service: Service): BaseGattProxyBearer<Service>;No description yet.

Properties

NameTypeDescription
basePeripheralCBPeripheralNo description yet.
centralManagerCBCentralManagerNo description yet.
identifierUUIDThe UUID associated with the peer.
loggeranyThe logger receives logs sent from the bearer. The logs will contain raw data of sent and received packets, as well as connection events.
supportedPduTypesPduTypes[]No description yet.
isOpenunknownNo description yet.
nameunknownNo description yet.

Methods

NameSignatureDescription
centralManagerDidConnectcentralManagerDidConnect(_: CBCentralManager, peripheral: CBPeripheral): void;No description yet.
centralManagerDidDisconnectPeripheralcentralManagerDidDisconnectPeripheral(_: CBCentralManager, peripheral: CBPeripheral, error?: Error): void;No description yet.
centralManagerDidDiscoverPeripheralcentralManagerDidDiscoverPeripheral(central: CBCentralManager, peripheral: CBPeripheral, rssi?: number, _advertisementData?: unknown): void;No description yet.
centralManagerDidFailConnectcentralManagerDidFailConnect(central: CBCentralManager, peripheral: CBPeripheral, error: Error): void;No description yet.
centralManagerDidUpdateStatecentralManagerDidUpdateState(_central: CBCentralManager, state: CBCentralManagerState): void;No description yet.
closeclose(): void;No description yet.
didDisconnectdidDisconnect(_peripheral: CBPeripheral): void;No description yet.
didDiscoverCharacteristicsForServicedidDiscoverCharacteristicsForService(_: CBPeripheral, service: CBService, __?: Error): void;No description yet.
didDiscoverServicesdidDiscoverServices(peripheral: CBPeripheral, _?: Error): void;No description yet.
didReadRSSIdidReadRSSI(_: CBPeripheral, RSSI: Int64, __?: Error): void;No description yet.
didUpdateNotificationStateForCharacteristicdidUpdateNotificationStateForCharacteristic(_: CBPeripheral, characteristic: CBCharacteristic, __?: Error): void;No description yet.
didUpdateStatedidUpdateState(_peripheral: CBPeripheral): void;No description yet.
didUpdateValueForCharacteristicdidUpdateValueForCharacteristic(_: CBPeripheral, characteristic: CBCharacteristic, error: Error): void;No description yet.
didWriteValueForCharacteristicdidWriteValueForCharacteristic(_: CBPeripheral, __: CBCharacteristic): void;No description yet.
openopen(): void;No description yet.
readRSSIreadRSSI(): void;No description yet.
sendsend(data: Data, type: PduType): Promise<void>;No description yet.

Bearer

Kind: Class

Source: packages/core/src/bearer/bearer.ts#L127

The Bearer object is responsible for sending and receiving the data to the mesh network.

class Bearer extends any

Constructors

NameSignatureDescription
constructorBearer(): Bearer;No description yet.

Properties

NameTypeDescription
isOpenbooleanThis property returns true if the Bearer is open, otherwise false.
supportedPduTypesPduTypes[]Returns the PDU types supported by this bearer.

Methods

NameSignatureDescription
closeclose(): void | Error;No description yet.
openopen(): void | Error;No description yet.
supportssupports(pduType: PduType): boolean;No description yet.

BearerDataHandler

Kind: Class

Source: packages/core/src/bearer/bearer-handler.ts#L7

A bearer data handler processes mesh messages received by the bearer.

class BearerDataHandler<T>

Constructors

NameSignatureDescription
constructorBearerDataHandler<T>(): BearerDataHandler<T>;No description yet.

Methods

NameSignatureDescription
bearerDidDeliverDatabearerDidDeliverData(bearer: T, data: Data, type: PduType): void;No description yet.

BearerHandler

Kind: Class

Source: packages/core/src/bearer/bearer-handler.ts#L24

The bearer handler will receive events when the bearer has been opened or closed.

class BearerHandler<T>

Constructors

NameSignatureDescription
constructorBearerHandler<T>(): BearerHandler<T>;No description yet.

Methods

NameSignatureDescription
bearerDidClosebearerDidClose(bearer: T, error?: Error): void;No description yet.
bearerDidOpenbearerDidOpen(bearer: T): void;No description yet.

CapabilitiesReceived

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L40

Provisioning Capabilities were received.

type CapabilitiesReceived = unknown;

Properties

NameTypeDescription
capabilitiesProvisioningCapabilitiesNo description yet.
typecapabilitiesReceivedNo description yet.

Complete

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L35

The provisioning process is complete.

type Complete = unknown;

Properties

NameTypeDescription
typecompleteNo description yet.

CompositionDataPage

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-composition-data-status.ts#L24

A base protocol of a single Page of Composition Data. The Composition Data state contains information about a Node, the Elements it includes, and the supported models. The Composition Data is composed of a number of pages of information.

class CompositionDataPage

Constructors

NameSignatureDescription
constructorCompositionDataPage(): CompositionDataPage;No description yet.

Properties

NameTypeDescription
pageunknownNo description yet.
parametersunknownNo description yet.

ConfigAppKeyAdd

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-app-key-add.ts#L24

A ConfigAppKeyAdd is an acknowledged message used to add an ApplicationKey to the AppKey List on a Node and bind it to the NetworkKey identified by NetworkKey.index. The added Application Key can be used by the Node only as a pair with the specified Network Key. The Application Key is used to authenticate and decrypt messages it receives, as well as authenticate and encrypt messages it sends.

class ConfigAppKeyAdd extends any

Constructors

NameSignatureDescription
constructorConfigAppKeyAdd(networkKeyIndex: KeyIndex, applicationKeyIndex: KeyIndex, key: Data): ConfigAppKeyAdd;No description yet.

Properties

NameTypeDescription
applicationKeyIndexKeyIndexNo description yet.
keyDataThe 128-bit Application Key data.
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigAppKeyStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromApplicationKeyfromApplicationKey(applicationKey: ApplicationKey): ConfigAppKeyAdd;No description yet.
fromDatafromData(parameters: Data): ConfigAppKeyAdd | undefined;No description yet.

ConfigAppKeyDelete

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-app-key-delete.ts#L24

A ConfigAppKeyDelete is an acknowledged message used to delete an ApplicationKey from the AppKey List on a Node. To remove the key from the local Node you may use MeshNetwork.removeApplicationKey(). WARN: It is not guaranteed, that the target Node will remove the key from its AppKey List. To make sure the Node gets excluded, use ConfigAppKeyUpdate to update the value of the key and skip the Node when distributing the new value. After the Key Refresh Procedure is complete, the target Node will effectively be excluded from the mesh network.

class ConfigAppKeyDelete extends any

Constructors

NameSignatureDescription
constructorConfigAppKeyDelete(networkKeyIndex: KeyIndex, applicationKeyIndex: KeyIndex): ConfigAppKeyDelete;No description yet.

Properties

NameTypeDescription
applicationKeyIndexKeyIndexNo description yet.
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigAppKeyStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromApplicationKeyfromApplicationKey(applicationKey: ApplicationKey): ConfigAppKeyDelete;No description yet.
fromDatafromData(parameters: Data): ConfigAppKeyDelete | undefined;No description yet.

ConfigAppKeyGet

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-app-key-get.ts#L18

A ConfigAppKeyGet is an acknowledged message used to report all ApplicationKeys known to the Node that are bound to the given NetworkKey. The response to this message is a ConfigNetKeyList message.

class ConfigAppKeyGet extends any

Constructors

NameSignatureDescription
constructorConfigAppKeyGet(networkKeyIndex: KeyIndex): ConfigAppKeyGet;No description yet.

Properties

NameTypeDescription
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigAppKeyListNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigAppKeyGet | undefined;No description yet.
fromNetworkKeyfromNetworkKey(networkKey: NetworkKey): ConfigAppKeyGet;No description yet.

ConfigAppKeyList

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-app-key-list.ts#L19

A ConfigAppKeyList is an unacknowledged message reporting all ApplicationKeys bound to requested NetworkKey that are known to the Node.

class ConfigAppKeyList extends any

Constructors

NameSignatureDescription
constructorConfigAppKeyList(status: ConfigMessageStatus, networkKeyIndex: KeyIndex, applicationKeyIndexes: KeyIndex[]): ConfigAppKeyList;No description yet.

Properties

NameTypeDescription
applicationKeyIndexesKeyIndex[]Application Key Indexes bound to the Network Key known to the Node.
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
statusConfigMessageStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigAppKeyList | undefined;No description yet.
responseToresponseTo(request: ConfigAppKeyGet, applicationKeys: ApplicationKey[]): ConfigAppKeyList;No description yet.
responseToWithStatusresponseToWithStatus(request: ConfigAppKeyGet, status: ConfigMessageStatus): ConfigAppKeyList;No description yet.

ConfigAppKeyStatus

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-app-key-status.ts#L21

A ConfigAppKeyStatus is an unacknowledged message used to report a status for the requesting message, based on the NetworkKey.index identifying the NetworkKey on the NetKey List and on the ApplicationKey.index identifying the ApplicationKey on the AppKey List.

class ConfigAppKeyStatus extends any

Constructors

NameSignatureDescription
constructorConfigAppKeyStatus(networkKeyIndex: KeyIndex, applicationKeyIndex: KeyIndex, status: ConfigMessageStatus): ConfigAppKeyStatus;No description yet.

Properties

NameTypeDescription
applicationKeyIndexKeyIndexNo description yet.
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
statusConfigMessageStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromApplicationKeyfromApplicationKey(applicationKey: ApplicationKey): ConfigAppKeyStatus;No description yet.
fromDatafromData(parameters: Data): ConfigAppKeyStatus | undefined;No description yet.
responseToresponseTo(request: ConfigNetAndAppKeyMessage, status: ConfigMessageStatus): ConfigAppKeyStatus;No description yet.

ConfigCompositionDataGet

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-composition-data-get.ts#L4

class ConfigCompositionDataGet extends unknown

Constructors

NameSignatureDescription
constructorConfigCompositionDataGet(page: UInt8): ConfigCompositionDataGet;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
pageUInt8Page number of the Composition Data to get.
responseTypetypeof ConfigCompositionDataStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromDatafromData(parameters: Data): ConfigCompositionDataGet | undefined;No description yet.

ConfigCompositionDataStatus

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-composition-data-status.ts#L35

class ConfigCompositionDataStatus extends unknown

Constructors

NameSignatureDescription
constructorConfigCompositionDataStatus($page: CompositionDataPage): ConfigCompositionDataStatus;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
opCodeUInt32No description yet.
pageunknownNo description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromDatafromData(parameters: Data): ConfigCompositionDataStatus | undefined;No description yet.

ConfigDefaultTtlGet

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-default-ttl-get.ts#L4

class ConfigDefaultTtlGet extends unknown

Constructors

NameSignatureDescription
constructorConfigDefaultTtlGet(): ConfigDefaultTtlGet;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
responseTypetypeof ConfigDefaultTtlStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigDefaultTtlGet | undefined;No description yet.

ConfigDefaultTtlStatus

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-default-ttl-status.ts#L3

class ConfigDefaultTtlStatus extends unknown

Constructors

NameSignatureDescription
constructorConfigDefaultTtlStatus(ttl: UInt8): ConfigDefaultTtlStatus;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
ttlUInt8The Time To Live (TTL) value. Valid value is in range 1...127.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigDefaultTtlStatus | undefined;No description yet.

ConfigModelAppBind

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-model-app-bind.ts#L19

class ConfigModelAppBind extends any

Constructors

NameSignatureDescription
constructorConfigModelAppBind(applicationKeyIndex: KeyIndex, elementAddress: Address, modelIdentifier: UInt16, companyIdentifier: any): ConfigModelAppBind;No description yet.

Properties

NameTypeDescription
applicationKeyIndexKeyIndexNo description yet.
companyIdentifieranyNo description yet.
elementAddressAddressNo description yet.
modelIdentifierUInt16No description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigModelAppStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromApplicationKeyfromApplicationKey(applicationKey: ApplicationKey, model: Model): ConfigModelAppBind | undefined;No description yet.
fromDatafromData(parameters: Data): ConfigModelAppBind | undefined;No description yet.

ConfigModelAppStatus

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-model-app-status.ts#L20

class ConfigModelAppStatus extends any

Constructors

NameSignatureDescription
constructorConfigModelAppStatus(applicationKeyIndex: KeyIndex, elementAddress: Address, modelIdentifier: UInt16, status: ConfigMessageStatus, companyIdentifier: any): ConfigModelAppStatus;No description yet.

Properties

NameTypeDescription
applicationKeyIndexKeyIndexNo description yet.
companyIdentifieranyNo description yet.
elementAddressAddressNo description yet.
modelIdentifierUInt16No description yet.
opCodeUInt32No description yet.
statusConfigMessageStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
confirmconfirm<T>(request: T): ConfigModelAppStatus;No description yet.
fromDatafromData(parameters: Data): ConfigModelAppStatus | undefined;No description yet.
responseToresponseTo<T>(request: T, status: ConfigMessageStatus): ConfigModelAppStatus;No description yet.

ConfigModelAppUnbind

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-model-app-unbind.ts#L19

class ConfigModelAppUnbind extends any

Constructors

NameSignatureDescription
constructorConfigModelAppUnbind(applicationKeyIndex: KeyIndex, elementAddress: Address, modelIdentifier: UInt16, companyIdentifier: any): ConfigModelAppUnbind;No description yet.

Properties

NameTypeDescription
applicationKeyIndexKeyIndexNo description yet.
companyIdentifieranyNo description yet.
elementAddressAddressNo description yet.
modelIdentifierUInt16No description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigModelAppStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromApplicationKeyfromApplicationKey(applicationKey: ApplicationKey, model: Model): ConfigModelAppUnbind | undefined;No description yet.
fromDatafromData(parameters: Data): ConfigModelAppUnbind | undefined;No description yet.

ConfigNetKeyAdd

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-net-key-add.ts#L20

A ConfigNetKeyAdd is an acknowledged message used to add an NetworkKey to the NetKey List on a Node. The Network Key is used to authenticate and decrypt messages it receives, as well as authenticate and encrypt messages it sends.

class ConfigNetKeyAdd extends any

Constructors

NameSignatureDescription
constructorConfigNetKeyAdd(networkKeyIndex: KeyIndex, key: Data): ConfigNetKeyAdd;No description yet.

Properties

NameTypeDescription
keyDataThe 128-bit Application Key data.
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigNetKeyStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigNetKeyAdd | undefined;No description yet.
fromNetworkKeyfromNetworkKey(networkKey: NetworkKey): ConfigNetKeyAdd;No description yet.

ConfigNetKeyDelete

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-net-key-delete.ts#L24

ConfigNetKeyDelete is an acknowledged message used to delete an NetworkKey from the NetKey List on a Node. To remove the key from the local Node you may use MeshNetwork.remove(). WARN: It is not guaranteed, that the target Node will remove the key from its NetKey List. To make sure the Node gets excluded, use ConfigNetKeyUpdate to update the value of the key and skip the Node when distributing the new value. After the Key Refresh Procedure is complete, the target Node will effectively be excluded from the mesh network.

class ConfigNetKeyDelete extends any

Constructors

NameSignatureDescription
constructorConfigNetKeyDelete(networkKeyIndex: KeyIndex): ConfigNetKeyDelete;No description yet.

Properties

NameTypeDescription
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
responseTypetypeof ConfigNetKeyStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigNetKeyDelete | undefined;No description yet.
fromNetworkKeyfromNetworkKey(networkKey: NetworkKey): ConfigNetKeyDelete;No description yet.

ConfigNetKeyStatus

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-net-key-status.ts#L19

A ConfigNetKeyStatus is an unacknowledged message used to report the status of the operation on the NetKey List.

class ConfigNetKeyStatus extends any

Constructors

NameSignatureDescription
constructorConfigNetKeyStatus(networkKeyIndex: KeyIndex, status: ConfigMessageStatus): ConfigNetKeyStatus;No description yet.

Properties

NameTypeDescription
networkKeyIndexKeyIndexNo description yet.
opCodeUInt32No description yet.
statusConfigMessageStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigNetKeyStatus | undefined;No description yet.
fromNetworkKeyfromNetworkKey(networkKey: NetworkKey): ConfigNetKeyStatus;No description yet.
responseToresponseTo(request: ConfigNetKeyMessage, status: ConfigMessageStatus): ConfigNetKeyStatus;No description yet.

ConfigNodeReset

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-node-reset.ts#L4

class ConfigNodeReset extends unknown

Constructors

NameSignatureDescription
constructorConfigNodeReset(): ConfigNodeReset;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
responseTypetypeof ConfigNodeResetStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigNodeReset | undefined;No description yet.

ConfigNodeResetStatus

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-node-reset-status.ts#L3

class ConfigNodeResetStatus extends unknown

Constructors

NameSignatureDescription
constructorConfigNodeResetStatus(): ConfigNodeResetStatus;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): ConfigNodeResetStatus | undefined;No description yet.

Element

Kind: Class

Source: packages/core/src/mesh-models/element.ts#L38

An Element is an addressable entity within a Node. Each Node has at least one element, the Primary Element, and may have one or more additional secondary elements. The number and structure of elements is static and does not change throughout the lifetime of a node (that is, as long as the node is part of a network). The Primary Element is addressed using the first Unicast Address assigned to the Node during provisioning. Each additional secondary element is addressed using the subsequent addresses. These unicast element addresses allow nodes to identify which element within a node is transmitting or receiving a message.

class Element

Constructors

NameSignatureDescription
constructorElement(name: string | undefined, location: Location, models: Model[]): Element;No description yet.

Properties

NameTypeDescription
indexUInt8Numeric order of the Element within this Node.
namestring | undefinedUTF-8 human-readable name of the Element.
parentNodeNode | undefinedParent Node. This may be undefined if the Element was obtained in Composition Data and has not yet been added to a Node.
isPrimaryunknownNo description yet.
locationunknownNo description yet.
modelsunknownNo description yet.
unicastAddressunknownNo description yet.
primaryElementunknownNo description yet.

Methods

NameSignatureDescription
addModeladdModel(model: Model): void;No description yet.
addPrimaryElementModelsaddPrimaryElementModels(meshNetwork: MeshNetwork, _publisher: MeshNetworkManager): void;No description yet.
containsModelWithSigModelIdcontainsModelWithSigModelId(sigModelId: UInt16): boolean;No description yet.
insertModelinsertModel(model: Model, i: Int32): void;No description yet.
modelWithModelIdmodelWithModelId(modelId: UInt32): Model | undefined;No description yet.
removePrimaryElementModelsremovePrimaryElementModels(): void;No description yet.
decodedecode(jv: Record<string, unknown>): Element;No description yet.
fromLocationfromLocation(location: Location): Element;No description yet.

ElementData

Kind: Class

Source: packages/core/src/mesh-models-array/elements.ts#L16

class ElementData

Constructors

NameSignatureDescription
constructorElementData(index: UInt8, location: Location, models: ModelData[]): ElementData;No description yet.

Properties

NameTypeDescription
indexUInt8Numeric order of the Element within this Node.
locationLocationDescription of the Element's location.
modelsModelData[]An array of Model objects in the Element.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromCompositionDatafromCompositionData(compositionData: Data, offset: Int32, index: Int32): { elementData: ElementData; offset: number } | undefined;No description yet.
fromElementfromElement(element: Element): ElementData;No description yet.

Elements

Kind: Unknown

Source: packages/core/src/mesh-models-array/elements.ts#L135

Failed

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L48

The provisioning has failed because of a local error.

type Failed = unknown;

Properties

NameTypeDescription
errorErrorNo description yet.
typefailedNo description yet.

GattBearer

Kind: Class

Source: packages/core/src/bearer/gatt/gatt-bearer.ts#L10

The GATT bearer is responsible for sending and receiving mesh messages to and from the GATT Proxy Node.

class GattBearer extends BaseGattProxyBearer<any, this> & MeshBearer<this>

Constructors

NameSignatureDescription
constructorGattBearer(name: string | undefined, uuid: UUID, centralManager: CBCentralManager): GattBearer;No description yet.

Properties

NameTypeDescription
basePeripheralCBPeripheralNo description yet.
centralManagerCBCentralManagerNo description yet.
identifierUUIDThe UUID associated with the peer.
isOpenbooleanThis property returns true if the Bearer is open, otherwise false.
loggeranyThe logger receives logs sent from the bearer. The logs will contain raw data of sent and received packets, as well as connection events.
supportedPduTypesPduTypes[]Returns the PDU types supported by this bearer.
nameunknownNo description yet.

Methods

NameSignatureDescription
centralManagerDidConnectcentralManagerDidConnect(_: CBCentralManager, peripheral: CBPeripheral): void;No description yet.
centralManagerDidDisconnectPeripheralcentralManagerDidDisconnectPeripheral(_: CBCentralManager, peripheral: CBPeripheral, error?: Error): void;No description yet.
centralManagerDidDiscoverPeripheralcentralManagerDidDiscoverPeripheral(central: CBCentralManager, peripheral: CBPeripheral, rssi?: number, _advertisementData?: unknown): void;No description yet.
centralManagerDidFailConnectcentralManagerDidFailConnect(central: CBCentralManager, peripheral: CBPeripheral, error: Error): void;No description yet.
centralManagerDidUpdateStatecentralManagerDidUpdateState(_central: CBCentralManager, state: CBCentralManagerState): void;No description yet.
closeclose(): void;No description yet.
didDisconnectdidDisconnect(_peripheral: CBPeripheral): void;No description yet.
didDiscoverCharacteristicsForServicedidDiscoverCharacteristicsForService(_: CBPeripheral, service: CBService, __?: Error): void;No description yet.
didDiscoverServicesdidDiscoverServices(peripheral: CBPeripheral, _?: Error): void;No description yet.
didReadRSSIdidReadRSSI(_: CBPeripheral, RSSI: Int64, __?: Error): void;No description yet.
didUpdateNotificationStateForCharacteristicdidUpdateNotificationStateForCharacteristic(_: CBPeripheral, characteristic: CBCharacteristic, __?: Error): void;No description yet.
didUpdateStatedidUpdateState(_peripheral: CBPeripheral): void;No description yet.
didUpdateValueForCharacteristicdidUpdateValueForCharacteristic(_: CBPeripheral, characteristic: CBCharacteristic, error: Error): void;No description yet.
didWriteValueForCharacteristicdidWriteValueForCharacteristic(_: CBPeripheral, __: CBCharacteristic): void;No description yet.
openopen(): void;No description yet.
readRSSIreadRSSI(): void;No description yet.
sendsend(data: Data, type: PduType): Promise<void>;No description yet.
supportssupports(pduType: PduType): boolean;No description yet.
fromPeripheralfromPeripheral(peripheral: CBPeripheral, centralManager: CBCentralManager): GattBearer;No description yet.

GattBearerError

Kind: Class

Source: packages/core/src/bearer/gatt/gatt-bearer-error.ts#L4

Set of errors that may be thrown from the GATT bearer.

class GattBearerError extends Error

Properties

NameTypeDescription
messagestringNo description yet.
namestringNo description yet.
stackstringNo description yet.
deviceNotSupportedGattBearerErrorThe connected device does not have services required by the Bearer.
stackTraceLimitnumberThe Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Methods

NameSignatureDescription
captureStackTracecaptureStackTrace(targetObject: object, constructorOpt?: Function): void;No description yet.
prepareStackTraceprepareStackTrace(err: Error, stackTraces: CallSite[]): any;No description yet.

GattBearerHandler

Kind: Class

Source: packages/core/src/bearer/gatt/gatt-bearer-handler.ts#L9

This class extends BearerHandler and adds GATT specific event handlers.

class GattBearerHandler extends BearerHandler

Constructors

NameSignatureDescription
constructorGattBearerHandler(): GattBearerHandler;No description yet.

Methods

NameSignatureDescription
bearerDidClosebearerDidClose(bearer: Bearer, error?: Error): void;No description yet.
bearerDidConnectbearerDidConnect(bearer: Bearer): void;No description yet.
bearerDidDiscoverServicesbearerDidDiscoverServices(bearer: Bearer): void;No description yet.
bearerDidOpenbearerDidOpen(bearer: Bearer): void;No description yet.
bearerDidReadRSSIbearerDidReadRSSI(bearer: Bearer, RSSI: Int64): void;No description yet.

GenericOnOffGet

Kind: Class

Source: packages/core/src/mesh-messages/generic/generic-on-off-get.ts#L4

class GenericOnOffGet extends unknown

Constructors

NameSignatureDescription
constructorGenericOnOffGet(): GenericOnOffGet;No description yet.

Properties

NameTypeDescription
opCodeUInt32No description yet.
responseTypetypeof GenericOnOffStatusNo description yet.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): undefined;No description yet.

GenericOnOffSet

Kind: Class

Source: packages/core/src/mesh-messages/generic/generic-on-off-set.ts#L14

class GenericOnOffSet extends any

Constructors

NameSignatureDescription
constructorGenericOnOffSet(isOn: boolean, transitionTime: any, delay: any): GenericOnOffSet;No description yet.

Properties

NameTypeDescription
delayanyMessage execution delay in 5 millisecond steps.
isOnbooleanThe new state of Generic OnOff Server.
opCodeUInt32No description yet.
responseTypetypeof GenericOnOffStatusNo description yet.
tidUInt8No description yet.
transitionTimeanyThe time that an element will take to transition to the target state from the present state.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
fromDatafromData(parameters: Data): GenericOnOffSet | undefined;No description yet.

GenericOnOffStatus

Kind: Class

Source: packages/core/src/mesh-messages/generic/generic-on-off-status.ts#L11

class GenericOnOffStatus extends any

Constructors

NameSignatureDescription
constructorGenericOnOffStatus(isOn: boolean, remainingTime: any, targetState?: boolean): GenericOnOffStatus;No description yet.

Properties

NameTypeDescription
isOnbooleanThe present state of Generic OnOff Server.
opCodeUInt32No description yet.
remainingTimeanyNo description yet.
targetStatebooleanThe target state of Generic OnOff Server.
opCodeUInt32No description yet.
parametersunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromDatafromData(parameters: Data): GenericOnOffStatus | undefined;No description yet.
fromIsOnfromIsOn(isOn: boolean): GenericOnOffStatus;No description yet.
withStateAndTimewithStateAndTime(isOn: boolean, targetState: boolean, remainingTime: TransitionTime): GenericOnOffStatus;No description yet.

Group

Kind: Class

Source: packages/core/src/mesh-models/group.ts#L15

The Group object represents a user-defined group of Nodes, identified by Group Address or Virtual Label. A group may be given a human-readable name. In Mesh Configuration Database a Group may have a parent Group, but this is not reflected in the Mesh Profile specification. Groups cannot form circle relationships.

class Group

Constructors

NameSignatureDescription
constructorGroup(): Group;No description yet.

Properties

NameTypeDescription
$groupNamestringNo description yet.
addressMeshAddressThe address of the group.
groupAddressstringThe address property contains a 4-character hexadecimal string from 0xC000 to 0xFEFF or a 32-character hexadecimal string of virtual label UUID, and is the address of the group.
meshNetworkMeshNetworkNo description yet.
parentAddressstringThe parentAddress property contains a 4-character hexadecimal string or a 32-character hexadecimal string and represents an address of a parent Group in which this group is included. The value of "0000" indicates that the group is not included in another group (i.e., the group has no parent).
groupNameunknownNo description yet.
isUsedunknownNo description yet.

Methods

NameSignatureDescription
equalequal(other: Group): boolean;No description yet.
isDirectChildOfisDirectChildOf(parent: Group): boolean;No description yet.
isDirectParentOfisDirectParentOf(child: Group): boolean;No description yet.

HeartbeatMessage

Kind: Class

Source: packages/core/src/layers/lower-transport-layer/heart-beat-message.ts#L5

class HeartbeatMessage

Constructors

NameSignatureDescription
constructorHeartbeatMessage(opCode: UInt8, source: Address, destination: Address, features: NodeFeatures, initialTtl: UInt8, transportPdu: Data, ivIndex: UInt32, receivedTtl?: any): HeartbeatMessage;No description yet.

Properties

NameTypeDescription
destinationAddressThe destination Address. This can be either Unicast or Group Address.
featuresNodeFeaturesCurrently active features of the Node. - If the Relay feature is set, the Relay feature of a Node is in use. - If the Proxy feature is set, the GATT Proxy feature of a Node is in use. - If the Friend feature is set, the Friend feature of a Node is in use. - If the Low Power feature is set, the Node has active relationship with a Friend Node.
initialTtlUInt8Initial TTL used when sending the message.
ivIndexUInt32The IV Index used to encode this message.
opCodeUInt8Message Op Code.
receivedTtlanyTTL value with which the Heartbeat message was received. This is set to undefined for outgoing Heartbeat messages.
sourceAddressThe Unicast Address of the originating Node.
transportPduDataThe raw data of Upper Transport Layer PDU.
opCodeUInt8No description yet.
hopsunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromControlMessagefromControlMessage(message: ControlMessage): HeartbeatMessage | undefined;No description yet.

InputAction

Kind: Unknown

Source: packages/core/src/provisioning/oob.ts#L138

InputOob

Kind: Interface

Source: packages/core/src/provisioning/oob.ts#L206

interface InputOob

Properties

NameTypeDescription
actionInputActionNo description yet.
sizeUInt8No description yet.
typeinputOobNo description yet.

InputOobActions

Kind: Class

Source: packages/core/src/provisioning/oob.ts#L16

A set of supported Input Out-of-band actions.

class InputOobActions extends unknown<UInt16>

Constructors

NameSignatureDescription
constructorInputOobActions(): InputOobActions;No description yet.

Properties

NameTypeDescription
inputAlphanumericInputOobActionsNo description yet.
inputNumericInputOobActionsNo description yet.
pushInputOobActionsNo description yet.
twistInputOobActionsNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromDatafromData(data: Data, offset: Int32): InputOobActions;No description yet.

isGroupRanges

Kind: Function

Source: packages/core/src/mesh-models-array/ranges.ts#L31

function isGroupRanges(ranges: AddressRange[]): boolean;

isUnicastRanges

Kind: Function

Source: packages/core/src/mesh-models-array/ranges.ts#L21

function isUnicastRanges(ranges: AddressRange[]): boolean;

isValidRanges

Kind: Function

Source: packages/core/src/mesh-models-array/ranges.ts#L11

function isValidRanges(ranges: (AddressRange | SceneRange)[]): boolean;

IvIndexObserver

Kind: Class

Source: packages/core/src/mesh-models/mesh-network.ts#L52

An observer class for the IV Index changes in the mesh network. WARNING: This class is for advanced users and should be used with caution. The IV Index is managed internally by the library. Tracking changes to the IV Index is not necessary for most applications.

class IvIndexObserver

Constructors

NameSignatureDescription
constructorIvIndexObserver(): IvIndexObserver;No description yet.

Methods

NameSignatureDescription
ivIndexDidChangeivIndexDidChange(ivIndex: IvIndex): void;No description yet.

mergedRanges

Kind: Function

Source: packages/core/src/mesh-models-array/ranges.ts#L50

function mergedRanges<K, T>(ranges: T[]): T[];

MeshAddress

Kind: Class

Source: packages/core/src/mesh-models/mesh-address.ts#L4

class MeshAddress

Constructors

NameSignatureDescription
constructorMeshAddress(address: Address, virtualLabel: any): MeshAddress;No description yet.

Properties

NameTypeDescription
addressAddress16-bit address.
virtualLabelanyVirtual Label UUID.
hexunknownNo description yet.

Methods

NameSignatureDescription
equalequal(other: unknown): boolean;No description yet.
toStringtoString(): string;No description yet.
fromAddressfromAddress(address: Address): MeshAddress;No description yet.
fromHexfromHex(hex: string): MeshAddress | undefined;No description yet.
fromVirtualLabelfromVirtualLabel(virtualLabel: UUID): MeshAddress;No description yet.

MeshBearer

Kind: Class

Source: packages/core/src/bearer/bearer.ts#L161

A mesh bearer is used to send mesh messages to provisioned nodes.

class MeshBearer extends Bearer

Constructors

NameSignatureDescription
constructorMeshBearer(): MeshBearer;No description yet.

Properties

NameTypeDescription
isOpenbooleanThis property returns true if the Bearer is open, otherwise false.
supportedPduTypesPduTypes[]Returns the PDU types supported by this bearer.

Methods

NameSignatureDescription
closeclose(): void | Error;No description yet.
openopen(): void | Error;No description yet.
supportssupports(pduType: PduType): boolean;No description yet.

MeshData

Kind: Class

Source: packages/core/src/mesh-models/mesh-data.ts#L13

The Mesh Network configuration saved internally. It contains the Mesh Network and additional data that are not in the JSON schema, but are used by in the app.

class MeshData

Constructors

NameSignatureDescription
constructorMeshData(): MeshData;No description yet.

Properties

NameTypeDescription
meshNetworkMeshNetwork | undefinedMesh Network state.

Methods

NameSignatureDescription
decodedecode(json: Record<string, unknown>, storage: Storage): boolean;No description yet.
encodeencode(): SerializeObjectProperties<MeshNetwork> | undefined;No description yet.

MeshDataCtor

Kind: Type alias

Source: packages/core/src/mesh-models/mesh-network-manager.ts#L53

type MeshDataCtor<T> = () => T;

MeshNetwork

Kind: Class

Source: packages/core/src/mesh-models/mesh-network.ts#L63

class MeshNetwork

Constructors

NameSignatureDescription
constructorMeshNetwork(name: string, $storage: Storage, uuid: UUID): MeshNetwork;No description yet.

Properties

NameTypeDescription
applicationKeysApplicationKey[]No description yet.
groupsGroup[]An array of Groups in the network.
isPartialbooleanWhether the configuration contains full information about the mesh network, or only partial. In partial configuration Nodes' Device Keys can be nil.
ivIndexObserverIvIndexObserverNo description yet.
networkExclusionsExclusionList[]No description yet.
networkKeysNetworkKey[]No description yet.
nodesNode[]An array of Nodes in the network.
provisionersProvisioner[]An array of provisioner objects that includes information about known Provisioners and ranges of addresses and scenes that have been allocated to these Provisioners.
scenesScene[]An array of Scenes in the network.
uuidUUIDRandom 128-bit UUID allows differentiation among multiple mesh networks.
ivIndexunknownNo description yet.
localElementsunknownNo description yet.
localProvisionerunknownNo description yet.
meshNameunknownNo description yet.
nextAvailableApplicationKeyIndexunknownNo description yet.
nextAvailableNetworkKeyIndexunknownNo description yet.
timestampunknownNo description yet.

Methods

NameSignatureDescription
addApplicationKeyaddApplicationKey(key: ApplicationKey): void;No description yet.
addApplicationKeyWithPropertiesaddApplicationKeyWithProperties(applicationKey: Data, name: string, index?: any): any;No description yet.
addGroupaddGroup(_group: Group): any;No description yet.
addNetworkKeyaddNetworkKey(key: NetworkKey): void;No description yet.
addNetworkKeyWithNameaddNetworkKeyWithName(networkKey: Data, name: string, index?: any): any;No description yet.
addNodeaddNode(node: Node): any;No description yet.
addProvisioneraddProvisioner(provisioner: Provisioner): Promise<void>;No description yet.
addProvisionerWithAddressaddProvisionerWithAddress(provisioner: Provisioner, unicastAddress?: any): Promise<void>;No description yet.
containsGroupcontainsGroup(group: Group): boolean;No description yet.
containsNodecontainsNode(node: Node): boolean;No description yet.
containsNodeWithUuidcontainsNodeWithUuid(uuid: UUID): boolean;No description yet.
containsProvisionercontainsProvisioner(provisioner: Provisioner): boolean;No description yet.
containsProvisionerWithUuidcontainsProvisionerWithUuid(uuid: UUID): boolean;No description yet.
copycopy(configuration: ExportConfiguration): MeshNetwork;No description yet.
encodeencode(): SerializeObjectProperties<MeshNetwork>;No description yet.
isAddressAvailableForNodeisAddressAvailableForNode(address: Address, node: Node): boolean;No description yet.
isAddressRangeAvailableisAddressRangeAvailable(range: AddressRange): boolean;No description yet.
matchesNetworkIdmatchesNetworkId(networkId: Data): boolean;No description yet.
matchesNetworkIdentitymatchesNetworkIdentity(networkIdentity: NetworkIdentity): boolean;No description yet.
matchesNodeIdentitymatchesNodeIdentity(nodeIdentity: NodeIdentity): boolean;No description yet.
nextAvailableGroupAddressnextAvailableGroupAddress(provisioner: Provisioner): any;No description yet.
nextAvailableUnicastAddressForProvisionernextAvailableUnicastAddressForProvisioner(provisioner: Provisioner): any;No description yet.
nextAvailableUnicastAddressStartingFromnextAvailableUnicastAddressStartingFrom(elementsCount: UInt8, provisioner: Provisioner, offset: Address): any;No description yet.
nodeForProvisionernodeForProvisioner(provisioner: Provisioner): Node | undefined;No description yet.
nodeMatchingNodeIdentitynodeMatchingNodeIdentity(nodeIdentity: NodeIdentity): Node | undefined;No description yet.
nodeWithAddressnodeWithAddress(address: Address): Node | undefined;No description yet.
nodeWithUuidnodeWithUuid(uuid: UUID): Node | undefined;No description yet.
removeApplicationKeyWithKeyIndexremoveApplicationKeyWithKeyIndex(index: KeyIndex, force: boolean): any;No description yet.
removeGroupremoveGroup(_group: Group): any;No description yet.
removeNetworkKeyWithKeyIndexremoveNetworkKeyWithKeyIndex(index: KeyIndex, force: boolean): any;No description yet.
removeNoderemoveNode(node: Node): void;No description yet.
removeNodeWithUuidremoveNodeWithUuid(uuid: UUID): Node | undefined;No description yet.
updateTimestampupdateTimestamp(): void;No description yet.
copycopy(network: MeshNetwork, configuration: ExportConfiguration): MeshNetwork;No description yet.
decodedecode(jv: Record<string, unknown>, storage: Storage): MeshNetwork;No description yet.

MeshNetworkCtor

Kind: Type alias

Source: packages/core/src/mesh-models/mesh-network-manager.ts#L57

type MeshNetworkCtor<T> = (args: any) => T;

MeshNetworkManager

Kind: Class

Source: packages/core/src/mesh-models/mesh-network-manager.ts#L147

The main object responsible for managing the mesh network.

class MeshNetworkManager<MD, MN> extends unknown<AttentionTimerHandler & MeshNetworkHandler> implements NetworkParametersProvider

Constructors

NameSignatureDescription
constructorMeshNetworkManager<MD, MN>(storage: Storage, MeshDataClass: MeshDataCtor<MD>, MeshNetworkClass: MeshNetworkCtor<MN>, handlerQueue: DispatchQueue): MeshNetworkManager<MD, MN>;No description yet.

Properties

NameTypeDescription
handlerQueueDispatchQueueA queue to call handler methods on.
networkParametersNetworkParametersNetwork parameters.
proxyFilterProxyFilterThe Proxy Filter state.
isNetworkCreatedunknownNo description yet.
localElementsunknownNo description yet.
loggerunknownNo description yet.
meshNetworkunknownNo description yet.
networkManagerunknownNo description yet.
networkManagerHandlerunknownNo description yet.
storageunknownNo description yet.
transmitterunknownNo description yet.

Methods

NameSignatureDescription
bearerDidDeliverDatabearerDidDeliverData(_bearer: Bearer, data: Data, type: PduType): void;No description yet.
clearclear(): Promise<void>;No description yet.
createNewMeshNetworkWithNameAndProvisionercreateNewMeshNetworkWithNameAndProvisioner(name: string, provisioner: Provisioner): any;No description yet.
createNewMeshNetworkWithNameAndProvisionerNamecreateNewMeshNetworkWithNameAndProvisionerName(name: string, provisionerName: string): any;No description yet.
ensureNetworkKeyensureNetworkKey(networkKey: NetworkKey): void;No description yet.
exportexport(): Promise<Data>;No description yet.
loadload(): Promise<void>;No description yet.
provisionUnprovisionedDeviceprovisionUnprovisionedDevice(unprovisionedDevice: UnprovisionedDevice, bearer: ProvisioningBearer): any;No description yet.
publishpublish(message: MeshMessage, model: Model): Promise<MessageHandle | undefined>;No description yet.
savesave(): Promise<void>;No description yet.
sendAcknowledgedConfigMessageToAddresssendAcknowledgedConfigMessageToAddress(message: { completion?: (result: Result<ConfigResponse, Error>) => void; destination: Address; initialTtl?: any; message: AcknowledgedConfigMessage; networkKey?: NetworkKey }): Promise<MessageHandle>;No description yet.
sendAcknowledgedConfigMessageToNodesendAcknowledgedConfigMessageToNode(message: { completion?: (result: Result<ConfigResponse, Error>) => void; initialTtl?: any; message: AcknowledgedConfigMessage; networkKey?: NetworkKey; node: Node }): Promise<MessageHandle>;No description yet.
sendAcknowledgedMeshMessageToModelsendAcknowledgedMeshMessageToModel(message: { applicationKey?: ApplicationKey; initialTtl?: any; localElement?: Element; message: AcknowledgedMeshMessage; model: Model }): Promise<MeshResponse>;No description yet.
sendMeshMessageToMeshAddresssendMeshMessageToMeshAddress(message: { applicationKey: ApplicationKey; destination: MeshAddress; initialTtl?: any; localElement?: Element; message: MeshMessage }): Promise<void>;No description yet.
sendProxyConfigurationMessagesendProxyConfigurationMessage(message: ProxyConfigurationMessage): Promise<void>;No description yet.
sendUnacknowledgedMeshMessageToModelsendUnacknowledgedMeshMessageToModel(message: { applicationKey?: ApplicationKey; initialTtl?: any; localElement?: Element; message: UnacknowledgedMeshMessage; model: Model }): Promise<void>;No description yet.

MessageHandle

Kind: Class

Source: packages/core/src/mesh-models/message-handle.ts#L8

class MessageHandle

Constructors

NameSignatureDescription
constructorMessageHandle(message: MeshMessage, source: Address, destination: MeshAddress, manager: NetworkManager): MessageHandle;No description yet.

Properties

NameTypeDescription
destinationMeshAddressThe destination Address. This can be any type of Address.
managerNetworkManagerNo description yet.
opCodeUInt32The Op Code of the message.
sourceAddressThe source Unicast Address.

Methods

NameSignatureDescription
cancelcancel(): Promise<void>;No description yet.

Model

Kind: Class

Source: packages/core/src/mesh-models/model.ts#L37

A Model defines the basic functionality of a Node. A Node may include one or more Element, each with one or mode models. A model defines the required states, the messages that act upon those states, and any associated behavior. Two Models with the same Model.modelId cannot be located on the same Element. A Model may extend another Model. Models in Extend relationship may share states. A Model which does not extend any other Model is called a base Model. Models in Extend relationship located on the same Element share the Subscription List.

class Model

Constructors

NameSignatureDescription
constructorModel(modelId: UInt32, $subscribe: string[], $bind: KeyIndex[], handler?: ModelHandler): Model;No description yet.

Properties

NameTypeDescription
handlerModelHandlerThe model message handler. This is non-undefined for supported local Models and undefined for Models of remote Nodes.
modelIdSigModelIdBluetooth SIG or vendor-assigned model identifier. In case of vendor models the 2 most significant bytes of this property are the Company Identifier, as registered in Bluetooth SIG Assigned Numbers database. For Bluetooth SIG defined models these 2 bytes are 0x0000. Use Model.modelIdentifier to get the 16-bit model identifier and Model.companyIdentifier to obtain the Company Identifier. Use Model.isBluetoothSIGAssigned to check whether the Model is defined by Bluetooth SIG.
parentElementElement | undefinedParent Element.
applicationKeysunknownNo description yet.
bindunknownNo description yet.
boundApplicationKeysunknownNo description yet.
companyIdentifierunknownNo description yet.
companyNameunknownNo description yet.
isBluetoothSIGAssignedunknownNo description yet.
isBridgeConfigurationClientunknownNo description yet.
isBridgeConfigurationServerunknownNo description yet.
isConfigurationClientunknownNo description yet.
isConfigurationServerunknownNo description yet.
isDirectedForwardingConfigurationClientunknownNo description yet.
isDirectedForwardingConfigurationServerunknownNo description yet.
isGenericOnOffServerunknownNo description yet.
isHealthClientunknownNo description yet.
isHealthServerunknownNo description yet.
isLargeCompositionDataClientunknownNo description yet.
isLargeCompositionDataServerunknownNo description yet.
isOnDemandPrivateProxyClientunknownNo description yet.
isOnDemandPrivateProxyServerunknownNo description yet.
isOpcodesAggregatorClientunknownNo description yet.
isOpcodesAggregatorServerunknownNo description yet.
isPrivateBeaconClientunknownNo description yet.
isPrivateBeaconServerunknownNo description yet.
isRemoteProvisioningClientunknownNo description yet.
isRemoteProvisioningServerunknownNo description yet.
isSarConfigurationClientunknownNo description yet.
isSarConfigurationServerunknownNo description yet.
isSceneClientunknownNo description yet.
modelIdentifierunknownNo description yet.
nameunknownNo description yet.
publishunknownNo description yet.
relatedModelsunknownNo description yet.
requiresDeviceKeyunknownNo description yet.
subscribeunknownNo description yet.
subscriptionsunknownNo description yet.
supportsDeviceKeyunknownNo description yet.

Methods

NameSignatureDescription
bindApplicationKeyWithIndexbindApplicationKeyWithIndex(applicationKeyIndex: KeyIndex): void;No description yet.
copyFromcopyFrom(model: Model): void;No description yet.
extendsDirectlyextendsDirectly(_other: Model): boolean;No description yet.
isSubscribedToGroupisSubscribedToGroup(group: Group): boolean;No description yet.
isSubscribedToMeshAddressisSubscribedToMeshAddress(address: MeshAddress): boolean;No description yet.
unbindApplicationKeyWithIndexunbindApplicationKeyWithIndex(applicationKeyIndex: KeyIndex): void;No description yet.
decodedecode(jv: Record<string, unknown>): Model;No description yet.
fromSigModelIdfromSigModelId(sigModelId: SigModelId): Model;No description yet.
fromSigModelIdAndHandlerfromSigModelIdAndHandler(sigModelId: UInt16, handler: ModelHandler): Model;No description yet.

ModelData

Kind: Class

Source: packages/core/src/mesh-models-array/elements.ts#L90

class ModelData

Constructors

NameSignatureDescription
constructorModelData(modelId: UInt32): ModelData;No description yet.

Properties

NameTypeDescription
modelIdUInt32No description yet.
companyIdentifierunknownNo description yet.
isBluetoothSIGAssignedunknownNo description yet.
modelIdentifierunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromModelfromModel(model: Model): ModelData;No description yet.
fromSigModelIdfromSigModelId(sigModelId: UInt16): ModelData;No description yet.
fromVendorModelIdfromVendorModelId(vendorModelId: UInt16, companyId: UInt16): ModelData;No description yet.

ModelHandler

Kind: Class

Source: packages/core/src/mesh-models/model-handler.ts#L41

Model handler defines the functionality of a Model on the Local Node. Model Delegates are assigned to the Models during setting up the MeshNetworkManager.localElements. The Model Delegate must declare a map of mesh message type supported by this Model. Whenever a mesh message matching any of the declared Op Codes is received, and the Model instance is bound to the Application Key used to encrypt the message, one of the message handlers will be called: * ModelDelegate.modelDidReceiveUnacknowledgedMessage() * ModelDelegate.modelDidReceiveAcknowledgedMessage() * ModelDelegate.modelDidReceiveResponse() The Model Delegate also specifies should the Model support subscription and defines publication composer for automatic publications.

class ModelHandler

Constructors

NameSignatureDescription
constructorModelHandler(): ModelHandler;No description yet.

Properties

NameTypeDescription
$isSubscriptionSupportedbooleanA flag whether this Model supports subscription mechanism. When set to false, the library will return error ConfigMessageStatus.notASubscribeModel whenever subscription change was initiated.
$messageTypesMap<UInt32, { fromData: (_: Data) => any }>A map of mesh message types that the associated Model may receive and handle. It should not contain types of messages that this Model only sends. Items of this map are used to instantiate a message when an Access PDU with given opcode is received. The key in the map should be the opcode and the value the message type supported by the handler.
isSubscriptionSupportedunknownNo description yet.
messageTypesunknownNo description yet.
publicationMessageComposerunknownNo description yet.

Methods

NameSignatureDescription
decodedecode(accessPdu: AccessPdu): any;No description yet.
modelDidReceiveAcknowledgedMessagemodelDidReceiveAcknowledgedMessage(model: Model, request: AcknowledgedMeshMessage, source: Address, destination: MeshAddress): any;No description yet.
modelDidReceiveMessagemodelDidReceiveMessage(model: Model, message: MeshMessage, source: Address, destination: MeshAddress, request?: any): any;No description yet.
modelDidReceiveResponsemodelDidReceiveResponse(model: Model, response: MeshResponse, request: AcknowledgedMeshMessage, source: Address): void;No description yet.
modelDidReceiveUnacknowledgedMessagemodelDidReceiveUnacknowledgedMessage(model: Model, message: UnacknowledgedMeshMessage, source: Address, destination: MeshAddress): void;No description yet.
publishpublish(message: MeshMessage, manager: MeshNetworkManager): Promise<MessageHandle | undefined>;No description yet.
publishUsingpublishUsing(manager: MeshNetworkManager): Promise<MessageHandle | undefined>;No description yet.

NetworkIdentity

Kind: Interface

Source: packages/core/src/mesh-models/network-identity.ts#L14

The Network Identity contains information from Network Identity or Private Network Identity beacon. Network Identities can be matched to Network Keys in the network.

interface NetworkIdentity

Methods

NameSignatureDescription
matchesmatches(networkKey: NetworkKey): boolean;No description yet.

NetworkKey

Kind: Class

Source: packages/core/src/mesh-models/network-key.ts#L46

class NetworkKey extends unknown

Constructors

NameSignatureDescription
constructorNetworkKey(name: string, index: KeyIndex, key: Data): NetworkKey;No description yet.

Properties

NameTypeDescription
$indexKeyIndexNo description yet.
$keyDataNo description yet.
$namestringNo description yet.
indexunknownNo description yet.
isPrimaryunknownNo description yet.
isSecondaryunknownNo description yet.
keyunknownNo description yet.
keysunknownNo description yet.
minSecurityunknownNo description yet.
networkIdunknownNo description yet.
oldKeyunknownNo description yet.
oldKeysunknownNo description yet.
oldNetworkIdunknownNo description yet.
phaseunknownNo description yet.
timestampunknownNo description yet.
transmitKeysunknownNo description yet.

Methods

NameSignatureDescription
equalsequals(other: NetworkKey): boolean;No description yet.
isUsedInMeshNetworkisUsedInMeshNetwork(meshNetwork: MeshNetwork): boolean;No description yet.
lowerSecuritylowerSecurity(): void;No description yet.
toStringtoString(): string;No description yet.
decodedecode(jv: Record<string, unknown>): NetworkKey;No description yet.
fromNamefromName(name: string, index: KeyIndex, key: Data): any;No description yet.
primaryNetworkKeyprimaryNetworkKey(): NetworkKey;No description yet.

NetworkKeyDerivatives

Kind: Class

Source: packages/core/src/mesh-models/network-key.ts#L20

class NetworkKeyDerivatives

Constructors

NameSignatureDescription
constructorNetworkKeyDerivatives(key: Data): NetworkKeyDerivatives;No description yet.

Properties

NameTypeDescription
beaconKeyDataThe Beacon Key.
encryptionKeyDataThe Encryption Key.
identityKeyDataThe Identity Key.
nidUInt8Network identifier.
privacyKeyDataThe Privacy Key.
privateBeaconKeyDataThe Private Beacon Key.

NetworkKeys

Kind: Unknown

Source: packages/core/src/mesh-models-array/network-keys.ts#L3

NetworkParameters

Kind: Class

Source: packages/core/src/layers/network-parameters.ts#L229

class NetworkParameters

Constructors

NameSignatureDescription
constructorNetworkParameters(): NetworkParameters;No description yet.

Properties

NameTypeDescription
allowIvIndexRecoveryOver42booleanAccording to Bluetooth Mesh Profile 1.0.1, section 3.10.5, if the IV Index of the mesh network increased by more than 42 since the last connection (which can take at least 48 weeks), the Node should be re-provisioned. However, as this library can be used to provision other Nodes, it should not be blocked from sending messages to the network only because the phone wasn't connected to the network for that time. This flag can disable this check, effectively allowing such connection. The same can be achieved by clearing the app data (uninstalling and reinstalling the app) and importing the mesh network. With no "previous" IV Index, the library will accept any IV Index received in the Secure Network beacon upon connection to the GATT Proxy Node.
ivUpdateTestModebooleanIV Update Test Mode enables efficient testing of the IV Update procedure. The IV Update test mode removes the 96-hour limit; all other behavior of the device are unchanged.
defaultNetworkParametersA set of default network parameters. Example: ts meshNetworkManager.networkParameters = NetworkParameters.default
acknowledgmentMessageIntervalunknownNo description yet.
acknowledgmentMessageTimeoutunknownNo description yet.
completeAcknowledgmentTimerIntervalunknownNo description yet.
defaultTtlunknownNo description yet.
discardTimeoutunknownNo description yet.
multicastRetransmissionsIntervalunknownNo description yet.
sarAcknowledgmentDelayIncrementunknownNo description yet.
sarAcknowledgmentRetransmissionsCountunknownNo description yet.
sarDiscardTimeoutunknownNo description yet.
sarMulticastRetransmissionsCountunknownNo description yet.
sarMulticastRetransmissionsIntervalStepunknownNo description yet.
sarReceiverSegmentIntervalStepunknownNo description yet.
sarSegmentIntervalStepunknownNo description yet.
sarSegmentsThresholdunknownNo description yet.
sarUnicastRetransmissionsCountunknownNo description yet.
sarUnicastRetransmissionsIntervalIncrementunknownNo description yet.
sarUnicastRetransmissionsIntervalStepunknownNo description yet.
sarUnicastRetransmissionsWithoutProgressCountunknownNo description yet.
segmentReceptionIntervalunknownNo description yet.
segmentTransmissionIntervalunknownNo description yet.

Methods

NameSignatureDescription
acknowledgmentMessageIntervalForTtlacknowledgmentMessageIntervalForTtl(ttl: UInt8, segmentCount: Int64): TimeInterval;No description yet.
acknowledgmentTimerIntervalacknowledgmentTimerInterval(segN: UInt8): TimeInterval;No description yet.
unicastRetransmissionsIntervalunicastRetransmissionsInterval(ttl: UInt8): TimeInterval;No description yet.
basicbasic(builder: (config: NetworkParametersConfig) => void): NetworkParameters;No description yet.

NetworkParametersConfig

Kind: Class

Source: packages/core/src/layers/network-parameters.ts#L6

The builder allows easy configuration of NetworkParameters.

class NetworkParametersConfig

Constructors

NameSignatureDescription
constructorNetworkParametersConfig(): NetworkParametersConfig;No description yet.

Properties

NameTypeDescription
networkParametersNetworkParametersNo description yet.

Methods

NameSignatureDescription
buildbuild(): NetworkParameters;No description yet.
discardAcknowledgedMessagesdiscardAcknowledgedMessages(timeout: TimeInterval): void;No description yet.
discardIncompleteSegmentedMessagesdiscardIncompleteSegmentedMessages(timeout: TimeInterval): void;No description yet.
retransmitAcknowledgedMessageretransmitAcknowledgedMessage(interval: TimeInterval): void;No description yet.
retransmitAllSegmentsToGroupAddressretransmitAllSegmentsToGroupAddress(total: Long, interval: TimeInterval): void;No description yet.
retransmitSegmentAcknowledgmentMessagesretransmitSegmentAcknowledgmentMessages(count: UInt8, threshold: UInt8): void;No description yet.
retransmitUnacknowledgedSegmentsToUnicastAddressretransmitUnacknowledgedSegmentsToUnicastAddress(retransmissionsCount: UInt8, retransmissionsWithoutProgressCount: UInt8, interval: TimeInterval, increment: TimeInterval): void;No description yet.
setDefaultTtlsetDefaultTtl(ttl: UInt8): void;No description yet.
transmitSegmentAcknowledgmentMessagetransmitSegmentAcknowledgmentMessage(segmentReceptionInterval: TimeInterval, acknowledgmentDelayIncrement: Double): void;No description yet.
transmitSegmentstransmitSegments(interval: TimeInterval): void;No description yet.

NetworkTransmit

Kind: Class

Source: packages/core/src/mesh-models/node.ts#L81

The object represents parameters of the transmissions of network layer messages originating from a mesh node.

class NetworkTransmit

Constructors

NameSignatureDescription
constructorNetworkTransmit(count: UInt8, interval: UInt16): NetworkTransmit;No description yet.

Properties

NameTypeDescription
countUInt8Number of transmissions for network messages. The value is in range from 1 to 8.
intervalUInt16The interval (in milliseconds) between retransmissions (from 10 to 320 ms in 10 ms steps).
stepsunknownNo description yet.
timeIntervalunknownNo description yet.

Methods

NameSignatureDescription
decodedecode(jv: Record<string, unknown>): NetworkTransmit;No description yet.
fromFixingIncorrectNetworkTransmitfromFixingIncorrectNetworkTransmit(incorrectNetworkTransmit: NetworkTransmit): NetworkTransmit;No description yet.
fromRequestfromRequest(request: ConfigNetworkTransmitSet): NetworkTransmit;No description yet.
fromStatusfromStatus(status: ConfigNetworkTransmitStatus): NetworkTransmit;No description yet.

Node

Kind: Class

Source: packages/core/src/mesh-models/node.ts#L134

class Node

Constructors

NameSignatureDescription
constructorNode(name: string | undefined, unicastAddress: Address, elements: UInt8): Node;No description yet.

Properties

NameTypeDescription
$appKeysNodeKey[]An array of Node Network Key objects that include information about the Network Keys known to this node.
$elementsElement[]An array of node's elements.
$netKeysNodeKey[]No description yet.
$networkTransmitNetworkTransmit | undefinedNo description yet.
companyIdentifieranyThe 16-bit Company Identifier (CID) assigned by the Bluetooth SIG. The value of this property is obtained from node composition data.
deviceKeyany128-bit device key for this Node.
featuresNodeFeaturesState | undefinedNode's features.
heartbeatSubscriptionanyThe Heartbeat Subscription object represents parameters that define receiving of periodical Heartbeat transport control messages.
meshNetworkMeshNetwork | undefinedNo description yet.
minimumNumberOfReplayProtectionListanyThe minimum number of Replay Protection List (RPL) entries for this node. The value of this property is obtained from node composition data.
productIdentifieranyThe 16-bit vendor-assigned Product Identifier (PID). The value of this property is obtained from node composition data.
securitySecurityThe level of security for the subnet on which the node has been originally provisioner.
uuidUUIDUnique Node Identifier.
versionIdentifieranyThe 16-bit vendor-assigned Version Identifier (VID). The value of this property is obtained from node composition data.
appKeysunknownNo description yet.
applicationKeysunknownNo description yet.
defaultTtlunknownNo description yet.
elementsunknownNo description yet.
elementsCountunknownNo description yet.
isCompositionDataReceivedunknownNo description yet.
isConfigCompleteunknownNo description yet.
isExcludedunknownNo description yet.
isLocalProvisionerunknownNo description yet.
isProvisionerunknownNo description yet.
nameunknownNo description yet.
netKeysunknownNo description yet.
networkKeysunknownNo description yet.
networkTransmitunknownNo description yet.
primaryElementunknownNo description yet.
primaryUnicastAddressunknownNo description yet.
ttlunknownNo description yet.
unicastAddressRangeunknownNo description yet.

Methods

NameSignatureDescription
addApplicationKeyaddApplicationKey(applicationKey: ApplicationKey): void;No description yet.
addApplicationKeyWithIndexaddApplicationKeyWithIndex(applicationKeyIndex: KeyIndex): void;No description yet.
addElementaddElement(element: Element): void;No description yet.
addElementsaddElements(elements: Element[]): void;No description yet.
addNetworkKeyaddNetworkKey(networkKey: NetworkKey): void;No description yet.
addNetworkKeyWithIndexaddNetworkKeyWithIndex(networkKeyIndex: KeyIndex): void;No description yet.
applyCompositionDataapplyCompositionData(compositionData: ConfigCompositionDataStatus): void;No description yet.
containsElementsWithAddressesOverlappingcontainsElementsWithAddressesOverlapping(range: AddressRange): boolean;No description yet.
containsElementWithAddresscontainsElementWithAddress(address: Address): boolean;No description yet.
elementWithAddresselementWithAddress(address: Address): Element | undefined;No description yet.
equalsequals(other: Node): boolean;No description yet.
knowsApplicationKeyknowsApplicationKey(applicationKey: ApplicationKey): boolean;No description yet.
knowsApplicationKeyIndexknowsApplicationKeyIndex(applicationKeyIndex: KeyIndex): boolean;No description yet.
knowsNetworkKeyknowsNetworkKey(networkKey: NetworkKey): boolean;No description yet.
knowsNetworkKeyIndexknowsNetworkKeyIndex(networkKeyIndex: KeyIndex): boolean;No description yet.
removeApplicationKeyWithIndexremoveApplicationKeyWithIndex(applicationKeyIndex: KeyIndex): void;No description yet.
removeNetworkKeyWithIndexremoveNetworkKeyWithIndex(networkKeyIndex: KeyIndex): void;No description yet.
setApplicationKeyssetApplicationKeys(applicationKeys: ApplicationKey[]): void;No description yet.
setApplicationKeysWithIndexessetApplicationKeysWithIndexes(applicationKeyIndexes: KeyIndex[]): void;No description yet.
setElementssetElements(elements: Element[]): void;No description yet.
setNetworkKeyssetNetworkKeys(networkKeys: NetworkKey[]): void;No description yet.
setNetworkKeysWithIndexessetNetworkKeysWithIndexes(networkKeyIndexes: KeyIndex[]): void;No description yet.
decodedecode(jv: Record<string, unknown>): Node;No description yet.
forProvisionerWithAddressforProvisionerWithAddress(provisioner: Provisioner, address: Address): Node;No description yet.
forUnprovisionedDeviceforUnprovisionedDevice(unprovisionedDevice: UnprovisionedDevice, n: UInt8, deviceKey: Data, security: Security, networkKey: NetworkKey, address: Address): Node;No description yet.
withAssignedNetworkKeyAndAddresswithAssignedNetworkKeyAndAddress(name: string | undefined, uuid: UUID, deviceKey: Data, security: Security, networkKey: NetworkKey, address: Address): Node;No description yet.

NodeIdentity

Kind: Interface

Source: packages/core/src/mesh-models/node-identity.ts#L19

The Node Identity contains information from Node Identity or Private Node Identity beacon. It can be used to match advertising device to a specific Node in the network.

interface NodeIdentity

Methods

NameSignatureDescription
matchesmatches(node: Node): boolean;No description yet.

NodeKey

Kind: Class

Source: packages/core/src/mesh-models/node.ts#L50

class NodeKey

Constructors

NameSignatureDescription
constructorNodeKey($index: KeyIndex, $updated: boolean): NodeKey;No description yet.

Properties

NameTypeDescription
indexunknownNo description yet.
updatedunknownNo description yet.

Methods

NameSignatureDescription
decodedecode(jv: Record<string, unknown>): NodeKey;No description yet.

Nodes

Kind: Unknown

Source: packages/core/src/mesh-models-array/nodes.ts#L4

NoOob

Kind: Interface

Source: packages/core/src/provisioning/oob.ts#L193

interface NoOob

Properties

NameTypeDescription
typenoOobNo description yet.

OobType

Kind: Class

Source: packages/core/src/provisioning/oob.ts#L80

A set of supported Out-Of-Band types.

class OobType extends unknown<UInt8>

Constructors

NameSignatureDescription
constructorOobType(): OobType;No description yet.

Properties

NameTypeDescription
onlyOobAuthenticatedProvisioningSupportedOobTypeOnly OOB authenticated provisioning supported.
staticOobInformationAvailableOobTypeStatic OOB Information is available.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.

OutputAction

Kind: Unknown

Source: packages/core/src/provisioning/oob.ts#L116

OutputOob

Kind: Interface

Source: packages/core/src/provisioning/oob.ts#L201

interface OutputOob

Properties

NameTypeDescription
actionOutputActionNo description yet.
sizeUInt8No description yet.
typeoutputOobNo description yet.

OutputOobActions

Kind: Class

Source: packages/core/src/provisioning/oob.ts#L47

A set of supported Output Out-of-band actions.

class OutputOobActions extends unknown<UInt16>

Constructors

NameSignatureDescription
constructorOutputOobActions(): OutputOobActions;No description yet.

Properties

NameTypeDescription
beepOutputOobActionsNo description yet.
blinkOutputOobActionsNo description yet.
outputAlphanumericOutputOobActionsNo description yet.
outputNumericOutputOobActionsNo description yet.
vibrateOutputOobActionsNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromDatafromData(data: Data, offset: Int32): OutputOobActions;No description yet.

Page0

Kind: Class

Source: packages/core/src/mesh-messages/base/configuration/config-composition-data-status.ts#L81

Composition Data Page 0 shall be present on a Node. Composition Data Page 0 shall not change during a term of a Node on the network.

class Page0 extends CompositionDataPage

Constructors

NameSignatureDescription
constructorPage0(page: UInt8, companyIdentifier: UInt16, productIdentifier: UInt16, versionIdentifier: UInt16, minimumNumberOfReplayProtectionList: UInt16, features: NodeFeaturesState, elements: ElementData[]): Page0;No description yet.

Properties

NameTypeDescription
companyIdentifierUInt16The 16-bit Company Identifier (CID) assigned by the Bluetooth SIG. Company Identifiers are published in Assigned Numbers.
elementsElementData[]An array of Node's Elements.
featuresNodeFeaturesStateNode's features. The Page 0 of the Composition Data does not provide information whether a feature is enabled or disabled, just whether it is supported or not. Read the state of each feature using corresponding Config message.
minimumNumberOfReplayProtectionListUInt16The minimum number of Replay Protection List (RPL) entries for this node.
pageUInt8No description yet.
productIdentifierUInt16The 16-bit vendor-assigned Product Identifier (PID).
versionIdentifierUInt16The 16-bit vendor-assigned Version Identifier (VID).
parametersunknownNo description yet.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.
fromDatafromData(parameters: Data): Page0 | undefined;No description yet.
fromNodefromNode(node: Node): Page0;No description yet.

PBGattBearer

Kind: Class

Source: packages/core/src/bearer/gatt/pb-gatt-bearer.ts#L10

The PB GATT bearer is responsible for sending and receiving mesh provisioning messages to and from the GATT Proxy Node.

class PBGattBearer extends BaseGattProxyBearer<any, this> & ProvisioningBearer<this>

Constructors

NameSignatureDescription
constructorPBGattBearer(name: string | undefined, uuid: UUID, centralManager: CBCentralManager): PBGattBearer;No description yet.

Properties

NameTypeDescription
basePeripheralCBPeripheralNo description yet.
centralManagerCBCentralManagerNo description yet.
identifierUUIDThe UUID associated with the peer.
isOpenbooleanThis property returns true if the Bearer is open, otherwise false.
loggeranyThe logger receives logs sent from the bearer. The logs will contain raw data of sent and received packets, as well as connection events.
supportedPduTypesPduTypes[]Returns the PDU types supported by this bearer.
nameunknownNo description yet.

Methods

NameSignatureDescription
centralManagerDidConnectcentralManagerDidConnect(_: CBCentralManager, peripheral: CBPeripheral): void;No description yet.
centralManagerDidDisconnectPeripheralcentralManagerDidDisconnectPeripheral(_: CBCentralManager, peripheral: CBPeripheral, error?: Error): void;No description yet.
centralManagerDidDiscoverPeripheralcentralManagerDidDiscoverPeripheral(central: CBCentralManager, peripheral: CBPeripheral, rssi?: number, _advertisementData?: unknown): void;No description yet.
centralManagerDidFailConnectcentralManagerDidFailConnect(central: CBCentralManager, peripheral: CBPeripheral, error: Error): void;No description yet.
centralManagerDidUpdateStatecentralManagerDidUpdateState(_central: CBCentralManager, state: CBCentralManagerState): void;No description yet.
closeclose(): void;No description yet.
didDisconnectdidDisconnect(_peripheral: CBPeripheral): void;No description yet.
didDiscoverCharacteristicsForServicedidDiscoverCharacteristicsForService(_: CBPeripheral, service: CBService, __?: Error): void;No description yet.
didDiscoverServicesdidDiscoverServices(peripheral: CBPeripheral, _?: Error): void;No description yet.
didReadRSSIdidReadRSSI(_: CBPeripheral, RSSI: Int64, __?: Error): void;No description yet.
didUpdateNotificationStateForCharacteristicdidUpdateNotificationStateForCharacteristic(_: CBPeripheral, characteristic: CBCharacteristic, __?: Error): void;No description yet.
didUpdateStatedidUpdateState(_peripheral: CBPeripheral): void;No description yet.
didUpdateValueForCharacteristicdidUpdateValueForCharacteristic(_: CBPeripheral, characteristic: CBCharacteristic, error: Error): void;No description yet.
didWriteValueForCharacteristicdidWriteValueForCharacteristic(_: CBPeripheral, __: CBCharacteristic): void;No description yet.
openopen(): void;No description yet.
readRSSIreadRSSI(): void;No description yet.
sendsend(data: Data, type: PduType): Promise<void>;No description yet.
sendProvisioningRequestsendProvisioningRequest(request: ProvisioningRequest): Promise<void>;No description yet.
supportssupports(pduType: PduType): boolean;No description yet.
fromPeripheralfromPeripheral(peripheral: CBPeripheral, centralManager: CBCentralManager): PBGattBearer;No description yet.

PduType

Kind: Unknown

Source: packages/core/src/bearer/bearer.ts#L17

PduTypes

Kind: Class

Source: packages/core/src/bearer/bearer.ts#L100

A set of supported PDU types by the bearer object.

class PduTypes extends Number

Properties

NameTypeDescription
EPSILONnumberThe value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately: 2.2204460492503130808472633361816 x 10‍−‍16.
MAX_SAFE_INTEGERnumberThe value of the largest integer n such that n and n + 1 are both exactly representable as a Number value. The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
MAX_VALUEnumberThe largest number that can be represented in JavaScript. Equal to approximately 1.79E+308.
meshBeaconPduTypesSet, if the bearer supports Mesh Beacons.
MIN_SAFE_INTEGERnumberThe value of the smallest integer n such that n and n − 1 are both exactly representable as a Number value. The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
MIN_VALUEnumberThe closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324.
NaNnumberA value that is not a number. In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
NEGATIVE_INFINITYnumberA value that is less than the largest negative number that can be represented in JavaScript. JavaScript displays NEGATIVE_INFINITY values as -infinity.
networkPduPduTypesSet, if the bearer supports Network PDUs.
POSITIVE_INFINITYnumberA value greater than the largest number that can be represented in JavaScript. JavaScript displays POSITIVE_INFINITY values as infinity.
provisioningPduPduTypesSet, if the bearer supports Provisioning PDUs.
proxyConfigurationPduTypesSet, if the bearer supports proxy filter configuration.

Methods

NameSignatureDescription
toExponentialtoExponential(fractionDigits?: number): string;No description yet.
toFixedtoFixed(fractionDigits?: number): string;No description yet.
toLocaleStringtoLocaleString(locales?: string | string[], options?: NumberFormatOptions): string;No description yet.
toPrecisiontoPrecision(precision?: number): string;No description yet.
toStringtoString(radix?: number): string;No description yet.
valueOfvalueOf(): number;No description yet.
isFiniteisFinite(number: unknown): boolean;No description yet.
isIntegerisInteger(number: unknown): boolean;No description yet.
isNaNisNaN(number: unknown): boolean;No description yet.
isSafeIntegerisSafeInteger(number: unknown): boolean;No description yet.
parseFloatparseFloat(string: string): number;No description yet.
parseIntparseInt(string: string, radix?: number): number;No description yet.

Period

Kind: Class

Source: packages/core/src/mesh-models/publish.ts#L17

The Publishing Period state determines the interval at which status messages are periodically published by a Model.

class Period

Constructors

NameSignatureDescription
constructorPeriod(): Period;No description yet.

Properties

NameTypeDescription
intervalTimeIntervalThe interval between subsequent publications in seconds.
numberOfStepsUInt8The number of steps, in range 0...63.
resolutionStepResolutionThe resolution of the number of steps.

PrivateNetworkIdentity

Kind: Class

Source: packages/core/src/mesh-models/network-identity.ts#L71

Representation of Private Network Identity advertising packet.

class PrivateNetworkIdentity implements NetworkIdentity

Constructors

NameSignatureDescription
constructorPrivateNetworkIdentity(hash: Data, random: Data): PrivateNetworkIdentity;No description yet.

Properties

NameTypeDescription
hashDataFunction of the included random number and identity information.
randomData64-bit random number.

Methods

NameSignatureDescription
matchesmatches(networkKey: NetworkKey): boolean;No description yet.
toStringtoString(): string;No description yet.
fromAdvertisementDatafromAdvertisementData(advertisementData: Record<string, unknown>): PrivateNetworkIdentity | null;No description yet.

PrivateNodeIdentity

Kind: Class

Source: packages/core/src/mesh-models/node-identity.ts#L115

Representation of Private Node Identity advertising packet.

class PrivateNodeIdentity implements NodeIdentity

Constructors

NameSignatureDescription
constructorPrivateNodeIdentity(hash: Data, random: Data): PrivateNodeIdentity;No description yet.

Properties

NameTypeDescription
hashDataFunction of the included random number and identity information.
randomData64-bit random number.

Methods

NameSignatureDescription
matchesmatches(node: Node): boolean;No description yet.
toStringtoString(): string;No description yet.
fromAdvertisementDatafromAdvertisementData(advertisementData: Record<string, unknown>): PrivateNodeIdentity | null;No description yet.

Provisioner

Kind: Class

Source: packages/core/src/mesh-models/provisioner.ts#L35

Representation of a Provisioner in the mesh network. A Provisioner is an entity that is able to provision other device to the mesh network by assigning them Unicast Addresses and providing a Network Key in a secure way. A Provisioner with a Unicast Address assigned may also configure devices and becomes a Node of a network on its own. Each Provisioner has assigned 3 ranges: * Unicast Address range - set of Unicast Addresses which may assign to new Nodes during provisioning, * Group Address range - set of Group Addresses which the Provisioner may use to define new groups. * Scene range - set of Scene numbers which it may use to define new scenes. The Provisioner should not assign addresses from outside of its ranges to avoid conflicts with other Provisioners.

class Provisioner

Constructors

NameSignatureDescription
constructorProvisioner(name: string, uuid: UUID, allocatedUnicastRange: AddressRange[], allocatedGroupRange: AddressRange[], allocatedSceneRange: SceneRange[]): Provisioner;No description yet.

Properties

NameTypeDescription
allocatedGroupRangeAddressRange[]An array of group range objects.
allocatedSceneRangeSceneRange[]An array of scene range objects.
allocatedUnicastRangeAddressRange[]An array of unicast range objects.
meshNetworkMeshNetworkNo description yet.
uuidUUIDProvisioner's UUID. If the Provisioner has a corresponding Node, the Node's UUID will be equal to this one.
isValidunknownNo description yet.
nameunknownNo description yet.
nodeunknownNo description yet.
primaryUnicastAddressunknownNo description yet.

Methods

NameSignatureDescription
hasAllocatedAddressRangehasAllocatedAddressRange(range: AddressRange): boolean;No description yet.
hasOverlappingGroupRangeshasOverlappingGroupRanges(provisioner: Provisioner): boolean;No description yet.
hasOverlappingRangeshasOverlappingRanges(provisioner: Provisioner): boolean;No description yet.
hasOverlappingSceneRangeshasOverlappingSceneRanges(provisioner: Provisioner): boolean;No description yet.
hasOverlappingUnicastRangeshasOverlappingUnicastRanges(provisioner: Provisioner): boolean;No description yet.
maxElementCountmaxElementCount(address: Address): Int64;No description yet.
decodedecode(jv: Record<string, unknown>): Provisioner;No description yet.
fromNamefromName(name: string): Provisioner;No description yet.
fromNameWithRangesfromNameWithRanges(name: string, allocatedUnicastRange: AddressRange[], allocatedGroupRange: AddressRange[], allocatedSceneRange: SceneRange[]): Provisioner;No description yet.

Provisioning

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L30

Provisioning has been started.

type Provisioning = unknown;

Properties

NameTypeDescription
typeprovisioningNo description yet.

ProvisioningBearer

Kind: Class

Source: packages/core/src/bearer/bearer.ts#L169

A provisioning bearer is used to send provisioning PDUs to unprovisioned devices.

class ProvisioningBearer extends Bearer

Constructors

NameSignatureDescription
constructorProvisioningBearer(): ProvisioningBearer;No description yet.

Properties

NameTypeDescription
isOpenbooleanThis property returns true if the Bearer is open, otherwise false.
supportedPduTypesPduTypes[]Returns the PDU types supported by this bearer.

Methods

NameSignatureDescription
closeclose(): void | Error;No description yet.
openopen(): void | Error;No description yet.
sendProvisioningRequestsendProvisioningRequest(request: ProvisioningRequest): Promise<void>;No description yet.
supportssupports(pduType: PduType): boolean;No description yet.

ProvisioningCapabilities

Kind: Unknown

Source: packages/core/src/provisioning/provisioning-capabilities.ts#L11

ProvisioningError

Kind: Class

Source: packages/core/src/provisioning/provisioning-state.ts#L148

Set of errors which may be thrown during provisioning a device.

class ProvisioningError extends Error

Properties

NameTypeDescription
causeunknownNo description yet.
codestringNo description yet.
messagestringNo description yet.
namestringNo description yet.
stackstringNo description yet.
addressNotSpecifiedProvisioningErrorThrows when the Unicast Address has not been set.
confirmationFailedProvisioningErrorThrown when confirmation value received from the device does not match calculated value. Authentication failed.
invalidOobValueFormatProvisioningErrorThrown when the provided alphanumeric value could not be converted into bytes using ASCII encoding.
invalidPduProvisioningErrorThe received PDU is invalid.
invalidPublicKeyProvisioningErrorThe received Public Key is invalid or equal to Provisioner's Public Key.
invalidStateProvisioningErrorThrown when the ProvisioningManager is in invalid state.
networkKeyNotSpecifiedProvisioningErrorThrows when the Network Key has not been set.
noAddressAvailableProvisioningErrorThrown when no available Unicast Address was found in the Provisioner's range that could be allocated for the device.
stackTraceLimitnumberThe Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
unsupportedAlgorithmProvisioningErrorThrown when an unsupported algorithm has been selected for provisioning.
unsupportedDeviceProvisioningErrorThrown when the Unprovisioned Device is not supported by the manager.

Methods

NameSignatureDescription
captureStackTracecaptureStackTrace(targetObject: object, constructorOpt?: Function): void;No description yet.
keyGenerationFailedkeyGenerationFailed(error: Error): ProvisioningError;No description yet.
prepareStackTraceprepareStackTrace(err: Error, stackTraces: CallSite[]): any;No description yet.
remoteErrorremoteError(error: RemoteProvisioningError): ProvisioningError;No description yet.

ProvisioningHandler

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-manager.ts#L44

The handler for receiving provisioning events. The handler must also provide user input during the provisioning process related to Input or Output OOB.

type ProvisioningHandler = unknown;

Methods

NameSignatureDescription
authenticationActionRequiredauthenticationActionRequired(action: AuthAction): void;No description yet.
inputCompleteinputComplete(): void;No description yet.
provisioningStateprovisioningState(unprovisionedDevice: UnprovisionedDevice, state: ProvisioningState): void;No description yet.

ProvisioningManager

Kind: Class

Source: packages/core/src/provisioning/provisioning-manager.ts#L84

The manager responsible for provisioning a new device into the mesh network. To create an instance of a ProvisioningManager use MeshNetworkManager.provisionUnprovisionedDevice(). Provisioning is initiated by calling identifyAndAttractFor(). This method will make the provisioned device to blink, make sound or attract in any supported way, so that the user could verify which device is being provisioned. The target device will return ProvisioningCapabilities, returned to handler as ProvisioningState.capabilitiesReceived(). User needs to set the unicastAddress (by default set to suggestedUnicastAddress), networkKey and call provision(). If user interaction is required during provisioning process corresponding delegate callbacks will be invoked. The provisioning is completed when ProvisioningState.complete state is returned.

class ProvisioningManager extends unknown<ProvisioningHandler> implements BearerHandler, BearerDataHandler

Constructors

NameSignatureDescription
constructorProvisioningManager(unprovisionedDevice: UnprovisionedDevice, bearer: ProvisioningBearer, meshNetwork: MeshNetwork): ProvisioningManager;No description yet.

Properties

NameTypeDescription
$provisioningCapabilitiesProvisioningCapabilitiesNo description yet.
loggeranyThe logger handler will be called whenever a new log entry is created.
networkKeyNetworkKeyThe Network Key to be sent to the device during provisioning. Setting this property is mandatory before calling provision().
unicastAddressanyThe Unicast Address that will be assigned to the device. After device capabilities are received, the address is automatically set to the first available unicast address from Provisioner's range.
isDeviceSupportedunknownNo description yet.
isUnicastAddressValidunknownNo description yet.
provisioningCapabilitiesunknownNo description yet.
stateunknownNo description yet.
suggestedUnicastAddressunknownNo description yet.

Methods

NameSignatureDescription
authValueReceivedauthValueReceived(value: Data): void;No description yet.
bearerDidClosebearerDidClose(_bearer: Bearer, _error?: Error): void;No description yet.
bearerDidDeliverDatabearerDidDeliverData(_bearer: Bearer, data: Data, _type: PduType): void;No description yet.
bearerDidOpenbearerDidOpen(_bearer: Bearer): void;No description yet.
identifyidentify(attentionTimer: UInt8): Promise<void>;No description yet.
obtainAuthValueobtainAuthValue(): void;No description yet.
provisionprovision(algorithm: Algorithm, publicKey: PublicKey, authenticationMethod: AuthenticationMethod): Promise<ProvisioningError | BearerError | undefined>;No description yet.
resetreset(): void;No description yet.

ProvisioningState

Kind: Unknown

Source: packages/core/src/provisioning/provisioning-state.ts#L50

ProvisioningStateType

Kind: Enumeration

Source: packages/core/src/provisioning/provisioning-state.ts#L6

enum ProvisioningStateType {
  capabilitiesReceived,
  complete,
  failed,
  provisioning,
  ready,
  requestingCapabilities,
}

Members

NameDescription
capabilitiesReceivedNo description yet.
completeNo description yet.
failedNo description yet.
provisioningNo description yet.
readyNo description yet.
requestingCapabilitiesNo description yet.

ProxyProtocolHandler

Kind: Class

Source: packages/core/src/bearer/gatt/proxy-protocol-handler.ts#L28

This helper class allows segmentation and reassembly (SAR) using the Proxy Protocol defined in Bluetooth Mesh Profile 1.0.1.

class ProxyProtocolHandler

Constructors

NameSignatureDescription
constructorProxyProtocolHandler(): ProxyProtocolHandler;No description yet.

Methods

NameSignatureDescription
reassemblereassemble(data: Data): { data: Data; messageType: PduType } | undefined;No description yet.
segmentsegment(data: Data, messageType: PduType, mtu: Int64): Data[];No description yet.

PublicKey

Kind: Unknown

Source: packages/core/src/provisioning/public-key.ts#L28

The type of Device Public key to be used. This enumeration is used to specify the Public Key type during provisioning in ProvisioningManager.provision().

PublicKeyMethod

Kind: Unknown

Source: packages/core/src/provisioning/public-key.ts#L10

PublicKeyType

Kind: Class

Source: packages/core/src/provisioning/public-key.ts#L68

The type of Public Key information.

class PublicKeyType extends unknown<UInt8>

Constructors

NameSignatureDescription
constructorPublicKeyType(): PublicKeyType;No description yet.

Properties

NameTypeDescription
publicKeyOobInformationAvailablePublicKeyTypePublic Key OOB Information is available.

Methods

NameSignatureDescription
toStringtoString(): string;No description yet.

PublicNetworkIdentity

Kind: Class

Source: packages/core/src/mesh-models/network-identity.ts#L27

Representation of Network ID advertising packet.

class PublicNetworkIdentity implements NetworkIdentity

Constructors

NameSignatureDescription
constructorPublicNetworkIdentity(networkId: Data): PublicNetworkIdentity;No description yet.

Properties

NameTypeDescription
networkIdDataThe Network ID is 64-bit network identifier derived from the Network Key.

Methods

NameSignatureDescription
matchesmatches(networkKey: NetworkKey): boolean;No description yet.
toStringtoString(): string;No description yet.
fromAdvertisementDatafromAdvertisementData(advertisementData: Record<string, unknown>): PublicNetworkIdentity | null;No description yet.

PublicNodeIdentity

Kind: Class

Source: packages/core/src/mesh-models/node-identity.ts#L48

Representation of Node Identity advertising packet.

class PublicNodeIdentity implements NodeIdentity

Constructors

NameSignatureDescription
constructorPublicNodeIdentity(hash: Data, random: Data): PublicNodeIdentity;No description yet.

Properties

NameTypeDescription
hashDataFunction of the included random number and identity information.
randomData64-bit random number.

Methods

NameSignatureDescription
matchesmatches(node: Node): boolean;No description yet.
toStringtoString(): string;No description yet.
fromAdvertisementDatafromAdvertisementData(advertisementData: Record<string, unknown>): PublicNodeIdentity | null;No description yet.

Publish

Kind: Class

Source: packages/core/src/mesh-models/publish.ts#L59

The Publishing object defines the publication configuration for a Model. When a Model is configured for publishing, it will sent messages whenever a state of the Model has changed, or periodically. The Publish object defines the destination address and the Application Key to encrypt the messages, together with other settings. To set the publication on a Model, send the ConfigModelPublicationSet or ConfigModelPublicationVirtualAddressSet messages to the Configuration Server model on the Node. The Set messages are confirmed with a ConfigModelPublicationStatus.

class Publish

Constructors

NameSignatureDescription
constructorPublish(): Publish;No description yet.

Properties

NameTypeDescription
addressstringPublication address for the Model. It's 4 or 32-character long hexadecimal string.
credentialsInt64An integer 0 o 1 that represents whether master security (0) materials or friendship security material (1) are used.
indexKeyIndexAn Application Key index, indicating which Application Key to use for the publication.
periodPeriodThe interval between subsequent publications.
retransmitRetransmitThe object describes the number of times a message is published and the interval between retransmissions of the published message.
ttlUInt8An integer from 0 to 127 that represents the Time To Live (TTL) value for the outgoing publish message. 255 means default TTL value.
publicationAddressunknownNo description yet.

rangesContains

Kind: Function

Source: packages/core/src/mesh-models-array/ranges.ts#L111

function rangesContains<E>(ranges: RangeObject<E>[], range: RangeObject<E>): boolean;

Ready

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L18

Provisioning Manager is ready to start.

type Ready = unknown;

Properties

NameTypeDescription
typereadyNo description yet.

RemoteProvisioningError

Kind: Unknown

Source: packages/core/src/provisioning/provisioning-state.ts#L220

RequestingCapabilities

Kind: Type alias

Source: packages/core/src/provisioning/provisioning-state.ts#L23

The manager is requesting Provisioning Capabilities from the device.

type RequestingCapabilities = unknown;

Properties

NameTypeDescription
typerequestingCapabilitiesNo description yet.

Scene

Kind: Class

Source: packages/core/src/mesh-models/scene.ts#L20

A Scene represents a set of states stored with a Scene Number. A Scene is identified by a SceneNumber and may have a human-readable name associated. A Node having a Scene Server model can store the states of other models and restore them on demand. A Node with a Scene Client can recall Scenes on other Nodes. Use Scene.elements to get list of `Element's with the given Scene in their Scene Register.

class Scene

Constructors

NameSignatureDescription
constructorScene(): Scene;No description yet.

Properties

NameTypeDescription
$addressesAddress[]Addresses of Elements whose Scene Register state contains this Scene.
meshNetworkMeshNetworkNo description yet.
namestringUTF-8 human-readable name of the Scene.
numberSceneNumberScene number.
addressesunknownNo description yet.

Methods

NameSignatureDescription
removeNoderemoveNode(node: Node): void;No description yet.

SceneRange

Kind: Class

Source: packages/core/src/mesh-models/scene-range.ts#L15

The range of SceneNumbers assigned to a Provisioner.

class SceneRange extends unknown<SceneNumber>

Constructors

NameSignatureDescription
constructorSceneRange(): SceneRange;No description yet.

Properties

NameTypeDescription
allScenesSceneRangeA range containing all valid Scene Numbers.
firstSceneunknownNo description yet.
isValidunknownNo description yet.
lastSceneunknownNo description yet.

Methods

NameSignatureDescription
decodedecode(jv: Record<string, unknown>): SceneRange;No description yet.

serviceData

Kind: Function

Source: packages/core/src/mesh-models/node-identity.ts#L29

function serviceData(advertisementData: Record<string, unknown>): any;

StaticOob

Kind: Interface

Source: packages/core/src/provisioning/oob.ts#L197

interface StaticOob

Properties

NameTypeDescription
typestaticOobNo description yet.

StoredWithSceneModelHandler

Kind: Class

Source: packages/core/src/mesh-models/model-handler.ts#L236

The Model Handler which should be used for Models that allow storing the state with a Scene. In addition to handling messages, the Model Handler should also store and recall the current state whenever StoredWithSceneModelHandler.store() and StoredWithSceneModelHandler.recall() calls are received. Whenever the state changes due to any other reason than receiving a Scene Recall message, the handler should call StoredWithSceneModelHandler.networkDidExitStoredWithSceneState() to clear the Current State in the Scene Server model.

class StoredWithSceneModelHandler extends ModelHandler

Constructors

NameSignatureDescription
constructorStoredWithSceneModelHandler(): StoredWithSceneModelHandler;No description yet.

Properties

NameTypeDescription
$isSubscriptionSupportedbooleanA flag whether this Model supports subscription mechanism. When set to false, the library will return error ConfigMessageStatus.notASubscribeModel whenever subscription change was initiated.
$messageTypesMap<UInt32, { fromData: (_: Data) => any }>A map of mesh message types that the associated Model may receive and handle. It should not contain types of messages that this Model only sends. Items of this map are used to instantiate a message when an Access PDU with given opcode is received. The key in the map should be the opcode and the value the message type supported by the handler.
isSubscriptionSupportedunknownNo description yet.
messageTypesunknownNo description yet.
publicationMessageComposerunknownNo description yet.

Methods

NameSignatureDescription
decodedecode(accessPdu: AccessPdu): any;No description yet.
modelDidReceiveAcknowledgedMessagemodelDidReceiveAcknowledgedMessage(model: Model, request: AcknowledgedMeshMessage, source: Address, destination: MeshAddress): any;No description yet.
modelDidReceiveMessagemodelDidReceiveMessage(model: Model, message: MeshMessage, source: Address, destination: MeshAddress, request?: any): any;No description yet.
modelDidReceiveResponsemodelDidReceiveResponse(model: Model, response: MeshResponse, request: AcknowledgedMeshMessage, source: Address): void;No description yet.
modelDidReceiveUnacknowledgedMessagemodelDidReceiveUnacknowledgedMessage(model: Model, message: UnacknowledgedMeshMessage, source: Address, destination: MeshAddress): void;No description yet.
publishpublish(message: MeshMessage, manager: MeshNetworkManager): Promise<MessageHandle | undefined>;No description yet.
publishUsingpublishUsing(manager: MeshNetworkManager): Promise<MessageHandle | undefined>;No description yet.
recallrecall(scene: SceneNumber, transitionTime?: any, delay?: any): void;No description yet.
storestore(scene: SceneNumber): void;No description yet.

Transmitter

Kind: Class

Source: packages/core/src/bearer/bearer.ts#L83

A transmitter is responsible for delivering messages to the mesh network.

class Transmitter

Constructors

NameSignatureDescription
constructorTransmitter(): Transmitter;No description yet.

Methods

NameSignatureDescription
sendsend(data: Data, type: PduType): Promise<void>;No description yet.

UnknownNode

Kind: Class

Source: packages/core/src/mesh-models/unknown-node.ts#L21

A class representing an unknown Node connected as a GATT Proxy Node. An Unknown Node is a Node from which a message Proxy Configuration has been received, but the mesh network has no information about it. The Unknown Node has fixed security level set to Security.insecure, a single empty Element and only one NetworkKey, the one used to encrypt the Proxy Configuration message. All other properties are unknown. NOTE: It is not possible to request its Composition Data, as the Device Key is not known.

class UnknownNode extends Node

Constructors

NameSignatureDescription
constructorUnknownNode(pdu: NetworkPdu, meshNetwork: MeshNetwork): UnknownNode;No description yet.

Properties

NameTypeDescription
$appKeysNodeKey[]An array of Node Network Key objects that include information about the Network Keys known to this node.
$elementsElement[]An array of node's elements.
$netKeysNodeKey[]No description yet.
$networkTransmitNetworkTransmit | undefinedNo description yet.
companyIdentifieranyThe 16-bit Company Identifier (CID) assigned by the Bluetooth SIG. The value of this property is obtained from node composition data.
deviceKeyany128-bit device key for this Node.
featuresNodeFeaturesState | undefinedNode's features.
heartbeatSubscriptionanyThe Heartbeat Subscription object represents parameters that define receiving of periodical Heartbeat transport control messages.
meshNetworkMeshNetwork | undefinedNo description yet.
minimumNumberOfReplayProtectionListanyThe minimum number of Replay Protection List (RPL) entries for this node. The value of this property is obtained from node composition data.
productIdentifieranyThe 16-bit vendor-assigned Product Identifier (PID). The value of this property is obtained from node composition data.
securitySecurityThe level of security for the subnet on which the node has been originally provisioner.
uuidUUIDUnique Node Identifier.
versionIdentifieranyThe 16-bit vendor-assigned Version Identifier (VID). The value of this property is obtained from node composition data.
appKeysunknownNo description yet.
applicationKeysunknownNo description yet.
defaultTtlunknownNo description yet.
elementsunknownNo description yet.
elementsCountunknownNo description yet.
isCompositionDataReceivedunknownNo description yet.
isConfigCompleteunknownNo description yet.
isExcludedunknownNo description yet.
isLocalProvisionerunknownNo description yet.
isProvisionerunknownNo description yet.
nameunknownNo description yet.
netKeysunknownNo description yet.
networkKeysunknownNo description yet.
networkTransmitunknownNo description yet.
primaryElementunknownNo description yet.
primaryUnicastAddressunknownNo description yet.
ttlunknownNo description yet.
unicastAddressRangeunknownNo description yet.

Methods

NameSignatureDescription
addApplicationKeyaddApplicationKey(applicationKey: ApplicationKey): void;No description yet.
addApplicationKeyWithIndexaddApplicationKeyWithIndex(applicationKeyIndex: KeyIndex): void;No description yet.
addElementaddElement(element: Element): void;No description yet.
addElementsaddElements(elements: Element[]): void;No description yet.
addNetworkKeyaddNetworkKey(networkKey: NetworkKey): void;No description yet.
addNetworkKeyWithIndexaddNetworkKeyWithIndex(networkKeyIndex: KeyIndex): void;No description yet.
applyCompositionDataapplyCompositionData(compositionData: ConfigCompositionDataStatus): void;No description yet.
containsElementsWithAddressesOverlappingcontainsElementsWithAddressesOverlapping(range: AddressRange): boolean;No description yet.
containsElementWithAddresscontainsElementWithAddress(address: Address): boolean;No description yet.
elementWithAddresselementWithAddress(address: Address): Element | undefined;No description yet.
equalsequals(other: Node): boolean;No description yet.
knowsApplicationKeyknowsApplicationKey(applicationKey: ApplicationKey): boolean;No description yet.
knowsApplicationKeyIndexknowsApplicationKeyIndex(applicationKeyIndex: KeyIndex): boolean;No description yet.
knowsNetworkKeyknowsNetworkKey(networkKey: NetworkKey): boolean;No description yet.
knowsNetworkKeyIndexknowsNetworkKeyIndex(networkKeyIndex: KeyIndex): boolean;No description yet.
removeApplicationKeyWithIndexremoveApplicationKeyWithIndex(applicationKeyIndex: KeyIndex): void;No description yet.
removeNetworkKeyWithIndexremoveNetworkKeyWithIndex(networkKeyIndex: KeyIndex): void;No description yet.
setApplicationKeyssetApplicationKeys(applicationKeys: ApplicationKey[]): void;No description yet.
setApplicationKeysWithIndexessetApplicationKeysWithIndexes(applicationKeyIndexes: KeyIndex[]): void;No description yet.
setElementssetElements(elements: Element[]): void;No description yet.
setNetworkKeyssetNetworkKeys(networkKeys: NetworkKey[]): void;No description yet.
setNetworkKeysWithIndexessetNetworkKeysWithIndexes(networkKeyIndexes: KeyIndex[]): void;No description yet.
decodedecode(jv: Record<string, unknown>): Node;No description yet.
forProvisionerWithAddressforProvisionerWithAddress(provisioner: Provisioner, address: Address): Node;No description yet.
forUnprovisionedDeviceforUnprovisionedDevice(unprovisionedDevice: UnprovisionedDevice, n: UInt8, deviceKey: Data, security: Security, networkKey: NetworkKey, address: Address): Node;No description yet.
withAssignedNetworkKeyAndAddresswithAssignedNetworkKeyAndAddress(name: string | undefined, uuid: UUID, deviceKey: Data, security: Security, networkKey: NetworkKey, address: Address): Node;No description yet.

UnprovisionedDevice

Kind: Class

Source: packages/core/src/provisioning/unprovisioned-device.ts#L21

A class representing an unprovisioned device.

class UnprovisionedDevice

Constructors

NameSignatureDescription
constructorUnprovisionedDevice(name: string | undefined, uuid: UUID, oobInformation: OobInformation): UnprovisionedDevice;No description yet.

Properties

NameTypeDescription
namestringReturns the human-readable name of the device.
oobInformationOobInformationInformation that points to out-of-band (OOB) information needed for provisioning.
uuidUUIDReturns the Mesh Beacon UUID of an Unprovisioned Device.

Methods

NameSignatureDescription
fromAdvertisementDatafromAdvertisementData(name: string | undefined, advertisementData: Record<string, unknown>): UnprovisionedDevice | undefined;No description yet.

unprovisionedDeviceUUID

Kind: Function

Source: packages/core/src/provisioning/unprovisioned-device.ts#L5

function unprovisionedDeviceUUID(data: Record<string, unknown>): any;

On this page

Package overviewExport mapExported APIAddressRangeConstructorsPropertiesMethodsaddressRangeContainsApplicationKeyConstructorsPropertiesMethodsApplicationKeysAuthActionAuthenticationMethodAuthenticationMethodTypeMembersBaseGattProxyBearerConstructorsPropertiesMethodsBearerConstructorsPropertiesMethodsBearerDataHandlerConstructorsMethodsBearerHandlerConstructorsMethodsCapabilitiesReceivedPropertiesCompletePropertiesCompositionDataPageConstructorsPropertiesConfigAppKeyAddConstructorsPropertiesMethodsConfigAppKeyDeleteConstructorsPropertiesMethodsConfigAppKeyGetConstructorsPropertiesMethodsConfigAppKeyListConstructorsPropertiesMethodsConfigAppKeyStatusConstructorsPropertiesMethodsConfigCompositionDataGetConstructorsPropertiesMethodsConfigCompositionDataStatusConstructorsPropertiesMethodsConfigDefaultTtlGetConstructorsPropertiesMethodsConfigDefaultTtlStatusConstructorsPropertiesMethodsConfigModelAppBindConstructorsPropertiesMethodsConfigModelAppStatusConstructorsPropertiesMethodsConfigModelAppUnbindConstructorsPropertiesMethodsConfigNetKeyAddConstructorsPropertiesMethodsConfigNetKeyDeleteConstructorsPropertiesMethodsConfigNetKeyStatusConstructorsPropertiesMethodsConfigNodeResetConstructorsPropertiesMethodsConfigNodeResetStatusConstructorsPropertiesMethodsElementConstructorsPropertiesMethodsElementDataConstructorsPropertiesMethodsElementsFailedPropertiesGattBearerConstructorsPropertiesMethodsGattBearerErrorPropertiesMethodsGattBearerHandlerConstructorsMethodsGenericOnOffGetConstructorsPropertiesMethodsGenericOnOffSetConstructorsPropertiesMethodsGenericOnOffStatusConstructorsPropertiesMethodsGroupConstructorsPropertiesMethodsHeartbeatMessageConstructorsPropertiesMethodsInputActionInputOobPropertiesInputOobActionsConstructorsPropertiesMethodsisGroupRangesisUnicastRangesisValidRangesIvIndexObserverConstructorsMethodsmergedRangesMeshAddressConstructorsPropertiesMethodsMeshBearerConstructorsPropertiesMethodsMeshDataConstructorsPropertiesMethodsMeshDataCtorMeshNetworkConstructorsPropertiesMethodsMeshNetworkCtorMeshNetworkManagerConstructorsPropertiesMethodsMessageHandleConstructorsPropertiesMethodsModelConstructorsPropertiesMethodsModelDataConstructorsPropertiesMethodsModelHandlerConstructorsPropertiesMethodsNetworkIdentityMethodsNetworkKeyConstructorsPropertiesMethodsNetworkKeyDerivativesConstructorsPropertiesNetworkKeysNetworkParametersConstructorsPropertiesMethodsNetworkParametersConfigConstructorsPropertiesMethodsNetworkTransmitConstructorsPropertiesMethodsNodeConstructorsPropertiesMethodsNodeIdentityMethodsNodeKeyConstructorsPropertiesMethodsNodesNoOobPropertiesOobTypeConstructorsPropertiesMethodsOutputActionOutputOobPropertiesOutputOobActionsConstructorsPropertiesMethodsPage0ConstructorsPropertiesMethodsPBGattBearerConstructorsPropertiesMethodsPduTypePduTypesPropertiesMethodsPeriodConstructorsPropertiesPrivateNetworkIdentityConstructorsPropertiesMethodsPrivateNodeIdentityConstructorsPropertiesMethodsProvisionerConstructorsPropertiesMethodsProvisioningPropertiesProvisioningBearerConstructorsPropertiesMethodsProvisioningCapabilitiesProvisioningErrorPropertiesMethodsProvisioningHandlerMethodsProvisioningManagerConstructorsPropertiesMethodsProvisioningStateProvisioningStateTypeMembersProxyProtocolHandlerConstructorsMethodsPublicKeyPublicKeyMethodPublicKeyTypeConstructorsPropertiesMethodsPublicNetworkIdentityConstructorsPropertiesMethodsPublicNodeIdentityConstructorsPropertiesMethodsPublishConstructorsPropertiesrangesContainsReadyPropertiesRemoteProvisioningErrorRequestingCapabilitiesPropertiesSceneConstructorsPropertiesMethodsSceneRangeConstructorsPropertiesMethodsserviceDataStaticOobPropertiesStoredWithSceneModelHandlerConstructorsPropertiesMethodsTransmitterConstructorsMethodsUnknownNodeConstructorsPropertiesMethodsUnprovisionedDeviceConstructorsPropertiesMethodsunprovisionedDeviceUUID