mark not implemented yet functions

This commit is contained in:
Andrei Vereha 2021-02-26 11:47:42 +01:00
parent ea4db2c17b
commit 1661d978d0
3 changed files with 13 additions and 14 deletions

View file

@ -1,34 +1,31 @@
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.io 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 import java.io.ByteArrayOutputStream
sealed class PayloadJoinerAction sealed class PayloadJoinerAction
class PayloadJoinerActionAccept(): PayloadJoinerAction() class PayloadJoinerActionAccept : PayloadJoinerAction()
class PayloadJoinerActionReject(val idx: Byte): PayloadJoinerAction() class PayloadJoinerActionReject(val idx: Byte) : PayloadJoinerAction()
class PayloadJoiner() { class PayloadJoiner {
var oneExtra: Boolean=false
var oneExtra: Boolean = false
private val payload = ByteArrayOutputStream() private val payload = ByteArrayOutputStream()
fun start(payload: ByteArray): Int { fun start(payload: ByteArray): Int {
return 0; TODO("not implemented")
} }
fun accumulate(payload: ByteArray): PayloadJoinerAction { fun accumulate(payload: ByteArray): PayloadJoinerAction {
return PayloadJoinerActionAccept() TODO("not implemented")
} }
fun finalize(): PayloadJoinerAction { fun finalize(): PayloadJoinerAction {
return PayloadJoinerActionAccept() TODO("not implemented")
} }
fun bytes(): ByteArray { fun bytes(): ByteArray {
return ByteArray(0); TODO("not implemented")
} }
} }

View file

@ -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.Address
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message.MessageIO 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.MessagePacket
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message.MessageType
import info.nightscout.androidaps.utils.extensions.hexStringToByteArray import info.nightscout.androidaps.utils.extensions.hexStringToByteArray
internal class LTKExchanger(private val aapsLogger: AAPSLogger,private val msgIO: MessageIO) { 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)), source = Address(byteArrayOf(5,6,7,8)),
payload = "545710030100038002420000fffffffe5350313d0004024200032c5350323d000bffc32dbd20030e01000016".hexStringToByteArray(), payload = "545710030100038002420000fffffffe5350313d0004024200032c5350323d000bffc32dbd20030e01000016".hexStringToByteArray(),
sequenceNumber = 1, sequenceNumber = 1,
type = MessageType.PAIRING,
) )
msgIO.sendMesssage(msg) msgIO.sendMesssage(msg)

View file

@ -5,7 +5,7 @@ import android.bluetooth.le.ScanResult
import android.os.ParcelUuid import android.os.ParcelUuid
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions.DiscoveredInvalidPodException 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 sequenceNo: Int
private val lotNo: Long private val lotNo: Long