timeout 시간. 경과하면 다음 명령문, 혹은 퇴피스텝으로 진행한다.
지정하지 않으면 무한 대기한다.
msec
퇴피주소
timeout 일 때 분기할 주소.
지정하지 않으면 다음 주소로 진행한다.
주소
리턴값
수신한 데이터 개수
사용 예
var bbuf=enet_to_sensor.BBuf()
enet_to_sensor.recv bbuf
enet_to_sensor.recv bbuf, 5000
var nitem=enet_to_sensor.recv(bbuf,5000,*TimeOut)
end
*TimeOut
print "Time out! No response from sensor"
end