Skip to content

get_ecn_location

Part of Reusable workflows in the Python API reference.

Related guidance: shipped-tooling.

Runnable examples: get_ecn_location.py.

from picogrid_ecn_client.workflows import get_ecn_location

Wait for the next terminal-geolocation MQTT event.

async def get_ecn_location(
client: ECNClient,
*,
timeout: float | None = None,
) -> ECNLocationResult
NameTypeDefaultDescription
clientECNClientConfigured SDK client used to observe terminal geolocation.
timeoutfloat | NoneNoneOptional maximum wait in seconds.
TypeDescription
ECNLocationResultThe next observed terminal-geolocation event.
ExceptionDescription
ECNClientErrorIf the stream cannot be opened or consumed.
TimeoutErrorIf no event arrives before timeout.

Source · workflows/observe.py

Version 0.2.0 · branch main