Skip to content

Commit

Permalink
collectd::modbus::data: Add new registry_types
Browse files Browse the repository at this point in the history
  • Loading branch information
vStone committed Jan 24, 2025
1 parent 62e4ff6 commit 027134a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion types/modbus/data.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
# @summary represents a modbus data entry
#
# https://github.com/collectd/collectd/blob/main/src/modbus.c
type Collectd::Modbus::Data = Struct[{
Optional['instance'] => String,
NotUndef['type'] => String[1],
NotUndef['register_base'] => Integer[0],
NotUndef['register_type'] => Enum['Int16', 'Int32', 'Uint16', 'Uint32', 'Float'],
NotUndef['register_type'] => Enum[
'Int16',
'Int32',
'Int32LE',
'Uint16',
'Uint32',
'Uint32LE',
'Float',
'FloatLE',
'Uint64',
'Int64',
'Double',
],
Optional['register_cmd'] => Enum['ReadHolding', 'ReadInput'],
}]

0 comments on commit 027134a

Please sign in to comment.