Difference between revisions of "Insteon PLM Ruby Code 350"
From LinuxMCE
(Updated to support X10) |
|||
Line 1: | Line 1: | ||
− | <pre> | + | <pre>#### Written by Dan Damron |
− | #### Written by Dan Damron | + | |
#### #350 Process Incoming Data #### | #### #350 Process Incoming Data #### | ||
buff = '' | buff = '' | ||
#$recvbuff = "" | #$recvbuff = "" | ||
while(true) | while(true) | ||
− | + | buff=conn_.Recv(128,50) | |
− | + | if(buff.length() == 0) | |
− | + | break | |
− | + | end | |
− | + | $recvbuff = $recvbuff + buff | |
end | end | ||
debugin($recvbuff) | debugin($recvbuff) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
$recvbuff = plmparse($recvbuff) | $recvbuff = plmparse($recvbuff) | ||
</pre> | </pre> |
Revision as of 01:48, 14 February 2008
#### Written by Dan Damron #### #350 Process Incoming Data #### buff = '' #$recvbuff = "" while(true) buff=conn_.Recv(128,50) if(buff.length() == 0) break end $recvbuff = $recvbuff + buff end debugin($recvbuff) $recvbuff = plmparse($recvbuff)