This page last changed on Dec 21, 2014 by andreax.

Hi there,
I have a single XML that has multiple value in it:

<response>
<led0>0</led0>
<led1>0</led1>
<led2>0</led2>
<led3>0</led3>
<led4>0</led4>
<led5>0</led5>
<led6>0</led6>
<led7>0</led7>
<led8>0</led8>
<led9>0</led9>
<leda>0</leda>
<ledb>0</ledb>
<ledc>0</ledc>
<ledd>0</ledd>
<lede>0</lede>
<ledf>0</ledf>
<btn0>dn</btn0>
<btn1>dn</btn1>
<btn2>dn</btn2>
<btn3>dn</btn3>
<btn4>dn</btn4>
<btn5>dn</btn5>
<btn6>dn</btn6>
<btn7>dn</btn7>
<btn8>dn</btn8>
<btn9>dn</btn9>
<btna>dn</btna>
<btnb>dn</btnb>
<btnc>dn</btnc>
<btnd>dn</btnd>
<btne>dn</btne>
<btnf>dn</btnf>
</response>

How can I read only 1 time and use custom sensor for each led? (For example led1 for sensorA, led2 for sensorB and so on).
Thanks a lot,.
Andrea

The only way to do this is through rules. Search this forum for the UDP listener thread to see some examples.

Posted by aktur at Dec 22, 2014 10:29
Document generated by Confluence on Jun 05, 2016 09:39