This shows you the differences between two versions of the page.
| logicpython:cubloc_api:get [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:get [2026/04/10 04:03] (current) – removed mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Get ====== | ||
| - | |||
| - | Read up to 4 bytes from the receive buffer as a little-endian integer. | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import Get | ||
| - | |||
| - | Get(channel: | ||
| - | </ | ||
| - | |||
| - | ===== Return Value ===== | ||
| - | |||
| - | Returns the received bytes decoded as a little-endian integer. If no data is available, 0 is returned immediately. | ||
| - | |||
| - | ===== Example ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import Get | ||
| - | |||
| - | # Example usage | ||
| - | result = Get(0, 1) | ||
| - | print(result) | ||
| - | </ | ||
| - | |||
| - | ===== Related APIs ===== | ||
| - | |||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||