sendConfig
abstract suspend fun sendConfig(destination: MeshAddress, opcode: MeshOpcode, payload: ByteArray, deviceKey: DeviceKey, acknowledged: Boolean = true, ttl: UByte): MeshMessageResponse?
Send a configuration message encrypted with the node's DeviceKey.
Configuration messages use DeviceKey encryption (not AppKey) per the BLE Mesh spec. The destination must be the primary element unicast address of the target node.
Return
The response if acknowledged, or null if unacknowledged or timeout.
Parameters
destination
The node's primary unicast address.
opcode
The configuration operation code.
payload
The configuration parameters.
deviceKey
The node's DeviceKey for encryption.
acknowledged
Whether to wait for a response.
ttl
Time-To-Live hop limit.