mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
start mesh service on boot, store device macaddr in prefs
This commit is contained in:
parent
55d4d769f8
commit
4e6d1be954
8 changed files with 105 additions and 53 deletions
|
|
@ -3,12 +3,13 @@ package com.geeksville.mesh.service
|
|||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.geeksville.android.Logging
|
||||
|
||||
|
||||
class BootCompleteReceiver : BroadcastReceiver() {
|
||||
class BootCompleteReceiver : BroadcastReceiver(), Logging {
|
||||
override fun onReceive(mContext: Context, intent: Intent) {
|
||||
if (intent.action == Intent.ACTION_BOOT_COMPLETED) {
|
||||
// FIXME - start listening for bluetooth messages from our device
|
||||
}
|
||||
// FIXME - start listening for bluetooth messages from our device
|
||||
info("Received boot complete announcement, starting mesh service")
|
||||
MeshService.startService(mContext)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue