source-based routing wip

This commit is contained in:
callebtc
2025-09-05 16:46:34 +02:00
parent 5769e70ea4
commit a5928987fe
7 changed files with 229 additions and 8 deletions
@@ -247,6 +247,16 @@ class BluetoothConnectionManager(
serverManager.getCharacteristic()
)
}
fun sendToPeer(peerID: String, routed: RoutedPacket): Boolean {
if (!isActive) return false
return packetBroadcaster.sendToPeer(
peerID,
routed,
serverManager.getGattServer(),
serverManager.getCharacteristic()
)
}
// Expose role controls for debug UI