get

suspend fun get(elementAddress: MeshAddress.UnicastAddress): GenericOnOffStatus

Get the current on/off state of a node.

Sends a Generic OnOff Get message and waits for the status response.

Return

The current on/off status.

Parameters

elementAddress

The unicast address of the element.