Type Alias tokio_modbus::Address

source ·
pub type Address = u16;
Expand description

A Modbus protocol address is represented by 16 bit from 0 to 65535.

This protocol address uses 0-based indexing, while the coil address or register address is often specified as a number with 1-based indexing. Please consult the specification of your devices if 1-based coil/register addresses need to be converted to 0-based protocol addresses by subtracting 1.