mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-09-19 04:59:59 +00:00
add sendPeriodicBroadcastAnnounce to startServices (#243)
This commit is contained in:
parent
b86a6bf4d1
commit
72af724588
@ -406,6 +406,10 @@ class BluetoothMeshService(private val context: Context) {
|
|||||||
|
|
||||||
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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user