Changes

113 bytes added ,  09:04, 23 August 2021
Line 38: Line 38:  
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Example of virtual device "dimmable lamp":
+
 
 +
===Example of virtual device "dimmable lamp"===
 +
<syntaxhighlight lang="xml" line>
 
<item addr="142:99" length="2" name="Lamp" sub-type="dimer-lamp" type="virtual"/>
 
<item addr="142:99" length="2" name="Lamp" sub-type="dimer-lamp" type="virtual"/>
 +
</syntaxhighlight>
 +
 
The script  processing of stroke
 
The script  processing of stroke
 +
<syntaxhighlight lang="cpp" line>
 
u8 state[2] = {0,0};
 
u8 state[2] = {0,0};
 
V-ID/142:99
 
V-ID/142:99
Line 60: Line 65:  
     setStatus(142:99,state);   
 
     setStatus(142:99,state);   
 
}
 
}
 +
</syntaxhighlight>