location_profile_loop

Function location_profile_loop 

Source
pub async fn location_profile_loop<CS: CounterStore + 'static>(
    node: DeviceNode<CS>,
)
Expand description

Keeps the advertised identity’s position synced to what the receiver has settled on, under PROP_GNSS_IDENT_UPDATE.

Wakes on a change of the advertised cell rather than on each fix: at the default precision a stationary node’s fixes all land in the same cell, and this would otherwise rewrite the profile every second to say exactly what it already said.

Nothing here runs on a timer. The identity’s freshness marker dates each payload as it is built, so a stationary node has nothing to restate — the position it is advertising is still the position it is at, and rewriting it would change no byte.