User Tools

Site Tools

한국어

logicpython:cubloc_api:checkbf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:checkbf [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:checkbf [2026/04/10 04:03] (current) – removed mfranklin
Line 1: Line 1:
-====== CheckBf ====== 
- 
-Return the number of bytes waiting in the receive buffer without consuming them. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import CheckBf 
- 
-CheckBf(channel: int) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **channel**: RS-232 ''channel'' number (0 or 1). 
- 
-===== Return Value ===== 
- 
-Return the number of bytes waiting in the receive buffer without consuming them. 
- 
-===== Exceptions ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''channel'' is not an integer. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#RuntimeError|RuntimeError]]: ''OpenCom'' has not been called for this ''channel''. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import CheckBf 
- 
-# Example usage 
-result = CheckBf(0) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:bclr|BClr]] 
-  * [[logicpython:cubloc_api:bfree|BFree]] 
-  * [[logicpython:cubloc_api:blen|BLen]] 
-  * [[logicpython:cubloc_api:get|Get]] 
-  * [[logicpython:cubloc_api:geta|GetA]] 
  
logicpython/cubloc_api/checkbf.1775786798.txt.gz · Last modified: by 127.0.0.1