User Tools

Site Tools

한국어

logicpython:cubloc_api:get

This is an old revision of the document!


Get

Read up to 4 bytes from the receive buffer as a little-endian integer.

Syntax

from cubloc import Get
 
Get(channel: int, length: int)

Return Value

Returns the received bytes decoded as a little-endian integer. If no data is available, 0 is returned immediately.

Example

from cubloc import Get
 
# Example usage
result = Get(0, 1)
print(result)
logicpython/cubloc_api/get.1775786798.txt.gz · Last modified: by 127.0.0.1