From 8d944fe0075c831f7abef14dce52dafd6d9dd516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 10 Feb 2021 17:10:04 +0100 Subject: [PATCH] Bump JSONRPC version --- tests/auto/api.json | 130 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/tests/auto/api.json b/tests/auto/api.json index b1c0dfc2..72b2e1ff 100644 --- a/tests/auto/api.json +++ b/tests/auto/api.json @@ -150,6 +150,12 @@ "MediaBrowserIconSoundCloud", "MediaBrowserIconRadioParadise" ], + "ModbusRtuError": [ + "ModbusRtuErrorNoError", + "ModbusRtuErrorUuidNotFound", + "ModbusRtuErrorHardwareNotFound", + "ModbusRtuErrorConnectionFailed" + ], "NetworkDeviceState": [ "NetworkDeviceStateUnknown", "NetworkDeviceStateUnmanaged", @@ -232,6 +238,27 @@ "ScriptMessageTypeLog", "ScriptMessageTypeWarning" ], + "SerialPortDataBits": [ + "SerialPortDataBitsData5", + "SerialPortDataBitsData6", + "SerialPortDataBitsData7", + "SerialPortDataBitsData8", + "SerialPortDataBitsUnknownDataBits" + ], + "SerialPortParity": [ + "SerialPortParityNoParity", + "SerialPortParityEvenParity", + "SerialPortParityOddParity", + "SerialPortParitySpaceParity", + "SerialPortParityMarkParity", + "SerialPortParityUnknownParity" + ], + "SerialPortStopBits": [ + "SerialPortStopBitsOneStop", + "SerialPortStopBitsOneAndHalfStop", + "SerialPortStopBitsTwoStop", + "SerialPortStopBitsUnknownStopBits" + ], "SetupMethod": [ "SetupMethodJustAdd", "SetupMethodDisplayPin", @@ -1478,6 +1505,61 @@ "offset": "Int" } }, + "ModbusRtu.AddModbusRtuMaster": { + "description": "Add a new modbus RTU master with the given configuration.", + "params": { + "baudrate": "Uint", + "dataBits": "$ref:SerialPortDataBits", + "parity": "$ref:SerialPortParity", + "serialPort": "String", + "stopBits": "$ref:SerialPortStopBits" + }, + "returns": { + "modbusError": "$ref:ModbusRtuError", + "o:modbusUuid": "Uuid" + } + }, + "ModbusRtu.GetModbusRtuMasters": { + "description": "Get the list of configured modbus RTU masters.", + "params": { + }, + "returns": { + "modbusRtuMasters": [ + "$ref:ModbusRtuMaster" + ] + } + }, + "ModbusRtu.GetSerialPorts": { + "description": "Get the list of available serial ports from the host system.", + "params": { + }, + "returns": { + "serialPorts": "$ref:SerialPorts" + } + }, + "ModbusRtu.ReconfigureModbusRtuMaster": { + "description": "Rconfigure the modbus RTU master with the given UUID and configuration.", + "params": { + "baudrate": "Uint", + "dataBits": "$ref:SerialPortDataBits", + "modbusUuid": "Uuid", + "parity": "$ref:SerialPortParity", + "serialPort": "String", + "stopBits": "$ref:SerialPortStopBits" + }, + "returns": { + "modbusError": "$ref:ModbusRtuError" + } + }, + "ModbusRtu.RemoveModbusRtuMaster": { + "description": "Remove the modbus RTU master with the given modbus UUID.", + "params": { + "modbusUuid": "Uuid" + }, + "returns": { + "modbusError": "$ref:ModbusRtuError" + } + }, "NetworkManager.ConnectWifiNetwork": { "description": "Connect to the wifi network with the given ssid and password.", "params": { @@ -2316,6 +2398,36 @@ "logEntry": "$ref:LogEntry" } }, + "ModbusRtu.ModbusRtuMasterAdded": { + "description": "Emitted whenever a new modbus RTU master has been added to the system.", + "params": { + "modbusRtuMaster": "$ref:ModbusRtuMaster" + } + }, + "ModbusRtu.ModbusRtuMasterChanged": { + "description": "Emitted whenever a new modbus RTU master has been changed to the system.", + "params": { + "modbusRtuMaster": "$ref:ModbusRtuMaster" + } + }, + "ModbusRtu.ModbusRtuMasterRemoved": { + "description": "Emitted whenever a new modbus RTU master has been removed from the system.", + "params": { + "modbusUuid": "Uuid" + } + }, + "ModbusRtu.SerialPortAdded": { + "description": "Emitted whenever a serial port has been added to the system.", + "params": { + "serialPort": "$ref:SerialPort" + } + }, + "ModbusRtu.SerialPortRemoved": { + "description": "Emitted whenever a serial port has been removed from the system.", + "params": { + "serialPort": "$ref:SerialPort" + } + }, "NetworkManager.NetworkStatusChanged": { "description": "Emitted whenever a status of a NetworkManager changes.", "params": { @@ -2709,6 +2821,15 @@ "r:source": "$ref:LoggingSource", "r:timestamp": "Uint" }, + "ModbusRtuMaster": { + "baudrate": "Uint", + "connected": "Bool", + "dataBits": "$ref:SerialPortDataBits", + "modbusUuid": "Uuid", + "parity": "$ref:SerialPortParity", + "serialPort": "String", + "stopBits": "$ref:SerialPortStopBits" + }, "MqttPolicy": { "allowedPublishTopicFilters": "StringList", "allowedSubscribeTopicFilters": "StringList", @@ -2836,6 +2957,15 @@ "Scripts": [ "$ref:Script" ], + "SerialPort": { + "r:description": "String", + "r:manufacturer": "String", + "r:serialNumber": "String", + "r:systemLocation": "String" + }, + "SerialPorts": [ + "$ref:SerialPort" + ], "ServerConfiguration": { "address": "String", "authenticationEnabled": "Bool",