A new max_bit_gaps parameter is now used for coils and discrete inputs similarly to max_register_gaps.
Non-control messages:
Boolean values can now be sourced from a coil or a discrete_input. Optionally, the value can be inverted.
Enum values can now be sourced from a coil or a discrete_input. An enum variant is associated to the true value, and another variant is associated with a false value.
Everywhere a holding_register could be used, input_register can also be used.
Control messages:
Two new output types were added: write_single_coil and flip_single_coil. They can be used on boolean fields and enum fields.
write_single_coil writes a predetermined true/false value to a coil.
flip_single_coil reads the status of the coil and write the flipped value back.
Closes #90
max_bit_gaps
parameter is now used for coils and discrete inputs similarly tomax_register_gaps
.coil
or adiscrete_input
. Optionally, the value can be inverted.coil
or adiscrete_input
. An enum variant is associated to thetrue
value, and another variant is associated with afalse
value.holding_register
could be used,input_register
can also be used.write_single_coil
andflip_single_coil
. They can be used on boolean fields and enum fields.write_single_coil
writes a predeterminedtrue
/false
value to a coil.flip_single_coil
reads the status of the coil and write the flipped value back.