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

Новая страница: «Another important parameter — setup-section, array <syntaxhighlight lang="JSON"> "setup": [ { "title": "IODIR", "address": 100…»
(Новая страница: « For example, substituting the values of shift and stride in the formula: <syntaxhighlight lang="C++">Shift = ((( 1 - 1) % 4) + 1) * 500 + 1000 = (0 + 1) * 500 +…»)
(Новая страница: «Another important parameter — setup-section, array <syntaxhighlight lang="JSON"> "setup": [ { "title": "IODIR", "address": 100…»)
Строка 442: Строка 442:
For example, substituting the values of shift and stride in the formula: <syntaxhighlight lang="C++">Shift = ((( 1 - 1) % 4) + 1) * 500 + 1000 = (0 + 1) * 500 + 1000 = 1500</syntaxhighlight> So, you need to add 1500 to all registers specified in the template.
For example, substituting the values of shift and stride in the formula: <syntaxhighlight lang="C++">Shift = ((( 1 - 1) % 4) + 1) * 500 + 1000 = (0 + 1) * 500 + 1000 = 1500</syntaxhighlight> So, you need to add 1500 to all registers specified in the template.


Еще один важный параметр — setup-секция, массив
Another important parameter — setup-section, array
<syntaxhighlight lang="JSON">
<syntaxhighlight lang="JSON">
     "setup": [    {
     "setup": [    {
Строка 452: Строка 452:
     ...]  
     ...]  
</syntaxhighlight>
</syntaxhighlight>
Он описывает регистры и значения, которые однократно заносятся в эти регистры при инициализации устройства (при запуске или перезапуске wb-mqtt-serial). Его можно использовать для конфигурирования устройств для работы в каком-то определенном режиме, задавать изначальные значения яркости, положения сервоприводов, состояния реле, режима работы с входами релейных модулей и т. п.
It describes the registers and values that are entered once in these registers when the device is initialized (when WB-mqtt-serial is started or restarted). It can be used to configure devices to operate in a particular mode, set the initial values of brightness, servo position, relay status, mode of operation with the inputs of relay modules, etc.


----
----
12 063

правки