12 063
правки
(Новая страница: «'''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…») |
(Новая страница: «=== Device settings === File:Device_properties_mqtt_serial.png|650px|thumb|right|Device parameters are described in wb-mqtt-serial.schema.json (made via [http:/…») |
||
Строка 25: | Строка 25: | ||
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. | 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 settings === | ||
[[File:Device_properties_mqtt_serial.png|650px|thumb|right| | [[File:Device_properties_mqtt_serial.png|650px|thumb|right|Device parameters are described in wb-mqtt-serial.schema.json (made via [http://www.bodurov.com/JsonFormatter/ Collapsible JSON Formatter])]] | ||
В начале шаблона задаются параметры устройства в виде набора пар ''ключ:значение''. | В начале шаблона задаются параметры устройства в виде набора пар ''ключ:значение''. |
правки