- Overview
- Sensor integration
- Observe ECN location
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.
Observe the next update
Section titled “Observe the next update”terminal-geolocation is the integration segment of the ECN location broadcast on
the dedicated entity_location or entity_location_pb family.
python examples/get_ecn_location.py --checkexport ECN_OBSERVATION_TIMEOUT=10python examples/get_ecn_location.pyInterpret observed state
Section titled “Interpret observed state”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
