From c46b86088a72ca17df9241c87e0b033acef95895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 3 Dec 2024 16:20:38 +0100 Subject: [PATCH] Add networkdevice interface --- libnymea/interfaces/interfaces.qrc | 1 + libnymea/interfaces/networkdevice.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 libnymea/interfaces/networkdevice.json diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 45632ece..562fc4ce 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -100,5 +100,6 @@ alarm.json firesensor.json childlock.json + networkdevice.json diff --git a/libnymea/interfaces/networkdevice.json b/libnymea/interfaces/networkdevice.json new file mode 100644 index 00000000..b0036c06 --- /dev/null +++ b/libnymea/interfaces/networkdevice.json @@ -0,0 +1,17 @@ +{ + "description": "Things implementing this interface make use of the network device discovery resource and the network device monitor. This interface makes sure all relevant information will be stored. Depending on the MonitorMode of the discovered NetworkDeviceInfo the params of this thing shall be filled in. This makes sure the monitor uses the correct method to monitor the network device presence and IP. If the Mode is MAC, just sotre the mac address param and leave the others empty. If the Mode is HostName, just fill in the host name parameter. If the Mode is IP, just the address.", + "params": [ + { + "name": "address", + "type": "QString" + }, + { + "name": "hostName", + "type": "QString" + }, + { + "name": "macAddress", + "type": "QString" + } + ] +}