Your comments

I solved the problem.

But another one appeared :

Now the feedback lights work but i can't differentiate the 4 sockets , so when i turn on socket n1 the feed light of n2 ,n3 , n4 also turn on.


I tryied sending from each socket his number (with command "ID") to the server ; 

using GetCommandAtName() for reading the number of the socket;

if() for accepting only the right number.

The problem is that the program seems to ignore the "if" condition.



This is so simple but the script doesn't work.

I want to set the value of the feedback channel at 1 if the listener receives data , 0 if it doesn't.

I followed the guide but i can't find a solution

Ok, Thank you .

How can i read this kind of data via javascript?

I need to incorporate the script in the server.