Перейти к содержанию

Навигация

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

Новая страница: «The general structure of the device template is as follows: <syntaxhighlight lang="JSON"> //Device template { "device": { "Device1 parameter":"value",…»
(Новая страница: «A device template file is a [https://en.wikipedia.org/wiki/JSON JSON] structure that describes device parameters. The template allows comments. The JSON structure…»)
(Новая страница: «The general structure of the device template is as follows: <syntaxhighlight lang="JSON"> //Device template { "device": { "Device1 parameter":"value",…»)
Строка 7: Строка 7:




Общая структура шаблона устройства выглядит следующим образом:
The general structure of the device template is as follows:
 
<syntaxhighlight lang="JSON">
<syntaxhighlight lang="JSON">
//Шаблон устройства
//Device template
{  
{  
"device": {
"device": {
     "Параметр 1 устройства":"значение",  
     "Device1 parameter":"value",  
     "Параметр 2 устройства":"значение",  
     "Device2 parameter":"value",  
     ...
     ...
     "channels": [ {Параметры канала 1}, {Параметры канала 2}, ...]
     "channels": [ {channel parameters 1}, {channel parameters 2}, ...]
     }
     }
}</syntaxhighlight>
}</syntaxhighlight>
12 063

правки