This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nikiizvorski.uk.co.ble.ui | |
import android.view.View | |
import androidx.lifecycle.* | |
import dagger.hilt.android.lifecycle.HiltViewModel | |
import kotlinx.coroutines.* | |
import kotlinx.coroutines.flow.collect | |
import nikiizvorski.uk.co.ble.pojos.Photo | |
import nikiizvorski.uk.co.ble.pojos.Photos | |
import nikiizvorski.uk.co.ble.repos.NetworkRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var admin = require("firebase-admin"); | |
var serviceAccount = require("./recipebook-admin.json"); | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), | |
databaseURL: "dburl" | |
}); | |
const db = admin.firestore(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val KITCHEN = "224.0.0.251" | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
/* | |
To start using our sdk please run the sender first and get the channel, panid and the network you want it to be on. | |
after you find all the things you need by running the sample for the sender with the following command to verify | |
adb shell lowpanctl status and you verify all the above. Add it to the receiver and restart the sender. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
/* | |
To start using our sdk please run the sender first and get the channel, panid and the network you want it to be on. | |
after you find all the things you need by running the sample for the sender with the following command to verify | |
adb shell lowpanctl status and you verify all the above. Add it to the receiver and restart the sender. | |
You are all set. | |