mirror of
https://github.com/ratspeak/rsReticulum
synced 2026-11-22 23:10:33 +00:00
ble: Bluetooth Peer defaults to Gateway mode
This commit is contained in:
1 parent
71497c858d
commit
19e65d4da9
2 files changed
+5
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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<u8>) -> 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 ──
|
||||
|
||||
Reference in new issue
Block a user