> For the complete documentation index, see [llms.txt](https://hyundai-robotics.gitbook.io/hi6-robot-language/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyundai-robotics.gitbook.io/hi6-robot-language/7-enet-module/3-enet/3-enet-member-func/enet-recv_bbuf.md).

# recv\_bbuf

### 설명

이더넷 객체로부터 바이너리 데이터를 수신하여 [BBuf](/hi6-robot-language/7-enet-module/4-bbuf.md) 객체에 저장합니다.

### 문법

`{ENet객체}.recv_bbuf {BBuf객체}[,{대기시간}][,{퇴피주소}]`

### 파라미터

| 항목     | 의미                                                                   | 기타   |
| ------ | -------------------------------------------------------------------- | ---- |
| BBuf객체 | 수신한 바이너리 데이터를 저장 할 BBuf객체                                            |      |
| 대기시간   | <p>timeout 시간. 경과하면 다음 명령문, 혹은 퇴피스텝으로 진행한다.<br>지정하지 않으면 무한 대기한다.</p> | msec |
| 퇴피주소   | <p>timeout 일 때 분기할 주소.<br>지정하지 않으면 다음 주소로 진행한다.</p>                  | 주소   |

### 리턴값

수신한 데이터 개수

### 사용 예

```python
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
```
