Struct rzw::basic::Node[][src]

pub struct Node<D> where
    D: Driver
{ /* fields omitted */ }

Methods

impl<D> Node<D> where
    D: Driver
[src]

Updates the information of the node

This function returns the GenericType for the node and the CommandClass.

This function sets the basic status of the node.

The Binary Switch Command Class is used to control devices with On/Off or Enable/Disable capability.

The Binary Switch Set command, version 1 is used to set a binary value.

The Binary Switch Command Class is used to control devices with On/Off or Enable/Disable capability.

The Binary Switch Get command, version 1 is used to request the status of a device with On/Off or Enable/Disable capability.

The Powerlevel Set Command is used to set the power level indicator value, which should be used by the node when transmitting RF, and the timeout for this power level indicator value before returning the power level defined by the application.

The seconds defines how many seconds the device stays in the defined powerlevel.

This command is used to advertise the current power level.

Return the Powerlevel status and the time left on this power level.

The Powerlevel Test Node Set Command is used to instruct the destination node to transmit a number of test frames to the specified NodeID with the RF power level specified. After the test frame transmissions the RF power level is reset to normal and the result (number of acknowledged test frames) is saved for subsequent read-back. The result of the test may be requested with a Powerlevel Test Node Get Command.

node_id: The node id where to send the message. test_node_id: The test NodeID that should receive the test frames. level: The power level indicator value to use in the test frame transmission. test_frames: The Test frame count field contains the number of test frames to transmit to the Test NodeID. The first byte is the most significant byte.

This command is used to report the latest result of a test frame transmission started by the Powerlevel Test Node Set Command.

Return the test node id, status of operation and the test frane count.

A meter is used to monitor a resource. The meter accumulates the resource flow over time. As an option, the meter may report not only the most recent accumulated reading but also the previous reading and the time that elapsed since then. A meter may also be able to report the current resource flow. This is known as the instant value.

The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.

A meter is used to monitor a resource. The meter accumulates the resource flow over time. As an option, the meter may report not only the most recent accumulated reading but also the previous reading and the time that elapsed since then. A meter may also be able to report the current resource flow. This is known as the instant value.

The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.

Trait Implementations

impl<D: Debug> Debug for Node<D> where
    D: Driver
[src]

Formats the value using the given formatter. Read more

impl<D> Clone for Node<D> where
    D: Driver
[src]

We need to implement Clone manually because of a bugin rust

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<D> Send for Node<D> where
    D: Send

impl<D> Sync for Node<D> where
    D: Send