User Tools

Site Tools

한국어

logicpython:cubloc_api:getstr2

This is an old revision of the document!


GetStr2

Read string data until a stop character is encountered.

Syntax

from cubloc import GetStr2
 
GetStr2(channel: int, byteLength: int, stopChar: int)

Return Value

Returns decoded string data up to byteLength bytes. If stopChar is found, it is included in the returned string.

Example

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