mark not implemented yet functions
This commit is contained in:
parent
ea4db2c17b
commit
1661d978d0
3 changed files with 13 additions and 14 deletions
|
@ -1,34 +1,31 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.io
|
||||
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.packet.BlePacket
|
||||
import java.io.ByteArrayOutputStream
|
||||
|
||||
sealed class PayloadJoinerAction
|
||||
|
||||
class PayloadJoinerActionAccept(): PayloadJoinerAction()
|
||||
class PayloadJoinerActionReject(val idx: Byte): PayloadJoinerAction()
|
||||
class PayloadJoinerActionAccept : PayloadJoinerAction()
|
||||
class PayloadJoinerActionReject(val idx: Byte) : PayloadJoinerAction()
|
||||
|
||||
class PayloadJoiner() {
|
||||
var oneExtra: Boolean=false
|
||||
class PayloadJoiner {
|
||||
|
||||
var oneExtra: Boolean = false
|
||||
|
||||
private val payload = ByteArrayOutputStream()
|
||||
|
||||
fun start(payload: ByteArray): Int {
|
||||
return 0;
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
fun accumulate(payload: ByteArray): PayloadJoinerAction {
|
||||
return PayloadJoinerActionAccept()
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
fun finalize(): PayloadJoinerAction {
|
||||
return PayloadJoinerActionAccept()
|
||||
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
fun bytes(): ByteArray {
|
||||
return ByteArray(0);
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -4,6 +4,7 @@ import info.nightscout.androidaps.logging.AAPSLogger
|
|||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message.Address
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message.MessageIO
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message.MessagePacket
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message.MessageType
|
||||
import info.nightscout.androidaps.utils.extensions.hexStringToByteArray
|
||||
|
||||
internal class LTKExchanger(private val aapsLogger: AAPSLogger,private val msgIO: MessageIO) {
|
||||
|
@ -14,6 +15,7 @@ internal class LTKExchanger(private val aapsLogger: AAPSLogger,private val msgIO
|
|||
source = Address(byteArrayOf(5,6,7,8)),
|
||||
payload = "545710030100038002420000fffffffe5350313d0004024200032c5350323d000bffc32dbd20030e01000016".hexStringToByteArray(),
|
||||
sequenceNumber = 1,
|
||||
type = MessageType.PAIRING,
|
||||
)
|
||||
msgIO.sendMesssage(msg)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import android.bluetooth.le.ScanResult
|
|||
import android.os.ParcelUuid
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions.DiscoveredInvalidPodException
|
||||
|
||||
class BleDiscoveredDevice(val scanResult: ScanResult, val scanRecord: ScanRecord, private val podId: Long) {
|
||||
class BleDiscoveredDevice(val scanResult: ScanResult, private val scanRecord: ScanRecord, private val podId: Long) {
|
||||
|
||||
private val sequenceNo: Int
|
||||
private val lotNo: Long
|
||||
|
|
Loading…
Reference in a new issue