Skip to main content

Module node_presence

Module node_presence 

Source
Expand description

The gnss and lora node capability flags, shared by the LAN /api/status/full route and the cloud heartbeat so both transports report the same answer for the same node.

Constants§

GNSS_FRESH
Freshness window of the 1 Hz gnss.json sidecar (mirrors contracts.toml).

Functions§

gnss_present
The GNSS lane works: ados-gnss runs on this profile (wire or underscore form) and its sidecar is fresh. The service writes it every second only while receivers are configured, so a file left by a stopped service goes stale and does not count.
lora_present
The LoRa lane is enabled: ados-lora runs on this profile and the lora-enabled marker sits in the config directory (etc_dir).