Add support for "iot modbus" (#205)

The default values match those of RouterOS 7.11 on a Mikrotik
RB924i-2nD-BT5&BG77 ("Knot").

Upstream documentation:
https://help.mikrotik.com/docs/pages/viewpage.action?pageId=61046813

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-08-26 11:23:14 +02:00 committed by GitHub
parent b7569b9dfd
commit 193218446a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

View file

@ -1423,6 +1423,16 @@ PATHS = {
'receive-errors': KeyInfo(default=False),
},
),
('iot', 'modbus'): APIData(
single_value=True,
fully_understood=True,
fields={
'disabled': KeyInfo(default=True),
'hardware-port': KeyInfo(default='modbus'),
'tcp-port': KeyInfo(default=502),
'timeout': KeyInfo(default=1000),
},
),
('ip', 'accounting'): APIData(
single_value=True,
fully_understood=True,