[M] Move files
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
package org.hydev.wearsync.bles
|
||||
|
||||
import com.welie.blessed.ScanFailure
|
||||
|
||||
class ScanException(val fail: ScanFailure) : Exception()
|
||||
@@ -1,9 +0,0 @@
|
||||
package org.hydev.wearsync.bles
|
||||
|
||||
/**
|
||||
* Enum that contains all sensor contact feature as specified here:
|
||||
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.heart_rate_measurement.xml
|
||||
*/
|
||||
enum class SensorContactFeature {
|
||||
NotSupported, SupportedNoContact, SupportedAndContact
|
||||
}
|
||||
@@ -5,7 +5,6 @@ import com.influxdb.annotations.Measurement
|
||||
import com.welie.blessed.BluetoothBytesParser
|
||||
import com.welie.blessed.BluetoothBytesParser.Companion.FORMAT_UINT16
|
||||
import com.welie.blessed.BluetoothBytesParser.Companion.FORMAT_UINT8
|
||||
import org.hydev.wearsync.bles.SensorContactFeature
|
||||
import java.nio.ByteOrder
|
||||
import java.time.Instant
|
||||
import java.util.*
|
||||
@@ -23,6 +22,14 @@ data class HeartRateMeasurement(
|
||||
val createdAt: Instant = Instant.now(),
|
||||
)
|
||||
|
||||
/**
|
||||
* Enum that contains all sensor contact feature as specified here:
|
||||
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.heart_rate_measurement.xml
|
||||
*/
|
||||
enum class SensorContactFeature {
|
||||
NotSupported, SupportedNoContact, SupportedAndContact
|
||||
}
|
||||
|
||||
class HeartRateDecoder : IDecoder<HeartRateMeasurement>
|
||||
{
|
||||
override val sid = UUID.fromString("0000180D-0000-1000-8000-00805f9b34fb")
|
||||
|
||||
Reference in New Issue
Block a user