diff --git a/CHANGELOG.md b/CHANGELOG.md index 56d9c18..d060111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Bluetooth Peer runs in Gateway mode, so a node with transport on looks up the paths its Bluetooth peers ask for that it doesn't know yet. Nodes with transport off behave as before. - Announce handler events carry `emitted`, the time the announcer stamped into the announce, so an application can tell an older cached announce in a path response from a newer one. `AnnounceHandlerEvent` struct literals need the new field. ## 1.5.0 - 2026-11-13 diff --git a/crates/rns-interface/src/ble_peer.rs b/crates/rns-interface/src/ble_peer.rs index c698553..de8bbf5 100644 --- a/crates/rns-interface/src/ble_peer.rs +++ b/crates/rns-interface/src/ble_peer.rs @@ -740,11 +740,13 @@ pub struct BlePeerConfig { } impl BlePeerConfig { + /// Gateway, as upstream configures a discoverable attach point: a transport + /// node then looks up paths its BLE peers ask for and does not know. pub fn new(name: &str, identity_hash: Vec) -> Self { Self { name: name.to_string(), identity_hash, - mode: InterfaceMode::Full, + mode: InterfaceMode::Gateway, } } } @@ -7401,7 +7403,7 @@ mod tests { let cfg = BlePeerConfig::new("mesh0", vec![0u8; 16]); assert_eq!(cfg.name, "mesh0"); assert_eq!(cfg.identity_hash.len(), 16); - assert_eq!(cfg.mode, InterfaceMode::Full); + assert_eq!(cfg.mode, InterfaceMode::Gateway); } // ── BlePeer struct serialization ──