mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-24 22:45:20 +00:00
add sendPeriodicBroadcastAnnounce to startServices (#243)
This commit is contained in:
@@ -405,7 +405,11 @@ class BluetoothMeshService(private val context: Context) {
|
|||||||
Log.i(TAG, "Starting Bluetooth mesh service with peer ID: $myPeerID")
|
Log.i(TAG, "Starting Bluetooth mesh service with peer ID: $myPeerID")
|
||||||
|
|
||||||
if (connectionManager.startServices()) {
|
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 {
|
} else {
|
||||||
Log.e(TAG, "Failed to start Bluetooth services")
|
Log.e(TAG, "Failed to start Bluetooth services")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user