start mesh service on boot, store device macaddr in prefs

This commit is contained in:
geeksville 2020-02-12 15:47:06 -08:00
parent 55d4d769f8
commit 4e6d1be954
8 changed files with 105 additions and 53 deletions

View file

@ -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)
}
}