This commit is contained in:
callebtc
2025-07-09 21:51:04 +02:00
parent 3c0d145406
commit b6f281275a
2 changed files with 2 additions and 5 deletions
@@ -128,7 +128,7 @@ class BluetoothConnectionManager(
try { try {
isActive = true isActive = true
// setupGattServer() setupGattServer()
// Start power manager and services // Start power manager and services
connectionScope.launch { connectionScope.launch {
@@ -350,10 +350,7 @@ class BluetoothMeshService(private val context: Context) {
) )
// Send with random delay and retry for reliability // Send with random delay and retry for reliability
delay(Random.nextLong(50, 500)) // delay(Random.nextLong(50, 500))
connectionManager.broadcastPacket(packet)
delay(300 + Random.nextLong(0, 200))
connectionManager.broadcastPacket(packet) connectionManager.broadcastPacket(packet)
} }
} }