Wb-mqtt-serial templates/en: различия между версиями

Новая страница: «* '''id''' — is the unique identifier of the device to MQTT. Each item in devices must have a unique id. mqtt-topic related to this device in MQTT have a common…»
(Новая страница: «* '''name''' — is the displayed name of the device. Published as<code> .../meta/name in mqtt</code>. The device name is used when displaying the web-interface,…»)
(Новая страница: «* '''id''' — is the unique identifier of the device to MQTT. Each item in devices must have a unique id. mqtt-topic related to this device in MQTT have a common…»)
Строка 45: Строка 45:
* '''name''' — is the displayed name of the device. Published as<code> .../meta/name in mqtt</code>.  The device name is used when displaying the web-interface, stored in the topic <code>"id" + " " + "slave_id"</code>. Example for a device with modbus address 5 (slave_id) and value <code>"name":"WB-MAP12H (basic)"</code> <code>/devices/wb-map12h_5/meta/name WB-MAP12H (basic)</code>.
* '''name''' — is the displayed name of the device. Published as<code> .../meta/name in mqtt</code>.  The device name is used when displaying the web-interface, stored in the topic <code>"id" + " " + "slave_id"</code>. Example for a device with modbus address 5 (slave_id) and value <code>"name":"WB-MAP12H (basic)"</code> <code>/devices/wb-map12h_5/meta/name WB-MAP12H (basic)</code>.


* '''id''' — уникальный идентификатор устройства в MQTT. Каждый элемент в devices должен иметь уникальный id. mqtt-topic'и, относящиеся в MQTT к данному устройству, имеют общий префикс /devices/<идентификатор топика>/... Также по умолчанию берется из шаблона с добавлением slave_id: <code>"id" + "_" + slave_id</code>
* '''id''' — is the unique identifier of the device to MQTT. Each item in devices must have a unique id. mqtt-topic related to this device in MQTT have a common prefix /devices/<topic ID>/... Also by default it is taken from the template with the addition of slave_id: <code>"id" + "_" + slave_id</code>
 
 
 
<!--* '''slave_id''' — Modbus-адрес устройства. Задается в виде <code>"slave_id" : slaveID,</code>. Необязательный параметр для шаблона, slave_id задается при конкурировании устройства и уже с этим параметром включается в конфигурационный файл <cоde>/etc/wb-mqtt-serial.conf</cоde>.-->
<!--* '''slave_id''' — Modbus-адрес устройства. Задается в виде <code>"slave_id" : slaveID,</code>. Необязательный параметр для шаблона, slave_id задается при конкурировании устройства и уже с этим параметром включается в конфигурационный файл <cоde>/etc/wb-mqtt-serial.conf</cоde>.-->


12 063

правки