Translations:Rule Examples/114/en: различия между версиями

Материал из Wiren Board
(Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("rs485_cmd", { title: "Send custom command to RS-485 port", cells: { enabled: { type: "switch", value: false }, } }); </syntaxhighlight>»)
 
(нет различий)

Текущая версия на 20:55, 21 сентября 2022

Определение сообщения (Rule Examples)
<syntaxhighlight lang="ecmascript">
defineVirtualDevice("rs485_cmd", {
   title: "Send custom command to RS-485 port",
   cells: {
enabled: {
    type: "switch",
    value: false
},
   }
});
</syntaxhighlight>
defineVirtualDevice("rs485_cmd", {
    title: "Send custom command to RS-485 port",
    cells: {
	enabled: {
	    type: "switch",
	    value: false
	},
    }
});