macula_bridge_node (macula v0.14.3)
View SourceMacula Bridge Node - Manages connection to parent mesh level.
The Bridge Node is responsible for: - Connecting to parent mesh (street to neighborhood to city to etc.) - Escalating DHT queries when local DHT misses - Caching results from parent queries locally - Maintaining connection health to parent bridges
Summary
Functions
Escalate a DHT query to parent level. Called when local DHT lookup fails.
Get list of parent bridge endpoints.
Get bridge node statistics.
Check if connected to parent bridge.
Update parent bridge endpoints (for dynamic configuration).
Start bridge node with registered name.
Store value to parent DHT (for advertisement propagation).
Functions
Escalate a DHT query to parent level. Called when local DHT lookup fails.
-spec escalate_query(pid(), map(), pos_integer()) -> {ok, term()} | {error, term()}.
Get list of parent bridge endpoints.
Get bridge node statistics.
Check if connected to parent bridge.
Update parent bridge endpoints (for dynamic configuration).
Start bridge node with registered name.
Store value to parent DHT (for advertisement propagation).