add sendPeriodicBroadcastAnnounce to startServices (#243)

This commit is contained in:
lollerfirst
2025-08-11 19:45:15 +02:00
committed by GitHub
parent b86a6bf4d1
commit 72af724588
@@ -405,7 +405,11 @@ class BluetoothMeshService(private val context: Context) {
Log.i(TAG, "Starting Bluetooth mesh service with peer ID: $myPeerID")
if (connectionManager.startServices()) {
isActive = true
isActive = true
// Start periodic announcements for peer discovery and connectivity
sendPeriodicBroadcastAnnounce()
Log.d(TAG, "Started periodic broadcast announcements (every 30 seconds)")
} else {
Log.e(TAG, "Failed to start Bluetooth services")
}