12 063
правки
(Новая страница: «The general structure of the device template is as follows: <syntaxhighlight lang="JSON"> //Device template { "device": { "Device1 parameter":"value",…») |
(Новая страница: «'''Device''' is a device connected to the controller, '''channel''' is a data source: usually it is a Modbus register with a description of the data type, polling…») |
||
Строка 20: | Строка 20: | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
'''Device''' is a device connected to the controller, '''channel''' is a data source: usually it is a Modbus register with a description of the data type, polling frequency, value conversion, etc. | |||
See the following sections for a detailed description: template files are stored on the controller in a folder | |||
<pre>/usr/share/wb-mqtt-serial/templates</pre> | |||
You should copy the new templates you created for the new device to this directory. In our templates, we use indents of 4 spaces per level, which ensures the readability of the template code, and we recommend writing new templates with the same indentation. | |||
=== Параметры устройства (device) === | === Параметры устройства (device) === |
правки