Skip to content

Observe ECN location

Use this workflow to wait for the next ECN location update and inspect the value stored in this SDK instance’s observed-state cache. The runnable location example is not a server query.

terminal-geolocation is the integration segment of the ECN location broadcast on the dedicated entity_location or entity_location_pb family.

Terminal window
python examples/get_ecn_location.py --check
export ECN_OBSERVATION_TIMEOUT=10
python examples/get_ecn_location.py

Set the common connection variables described in authentication. The example subscribes only to entity_location/terminal-geolocation/+ and entity_location_pb/terminal-geolocation. The JSON filter’s single-level UUID wildcard observes the broadcast without already knowing its canonical UUID. The protobuf topic has no entity segment: the returned event gets its UUID from the payload’s exactly 16 raw UUID bytes. A timeout means no matching update was observed; it does not prove that no server-side state exists. For entity-specific observation, use wait_for_update(entity_id, ...) or a location watcher with the exact UUID.

For the publication workflow, continue with Sensor integration.

Version 0.2.0 · branch main