From a98a6cb0c2cdbcf7767b0eb1506c30288925bdb0 Mon Sep 17 00:00:00 2001 From: Joris Borgdorff Date: Tue, 2 May 2023 14:08:27 +0200 Subject: [PATCH] fun didReceiveTag() will now send data --- .../src/main/java/org/radarbase/passive/empatica/E4Manager.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/radar-android-empatica/src/main/java/org/radarbase/passive/empatica/E4Manager.kt b/plugins/radar-android-empatica/src/main/java/org/radarbase/passive/empatica/E4Manager.kt index 347069489..fc050036a 100644 --- a/plugins/radar-android-empatica/src/main/java/org/radarbase/passive/empatica/E4Manager.kt +++ b/plugins/radar-android-empatica/src/main/java/org/radarbase/passive/empatica/E4Manager.kt @@ -56,6 +56,7 @@ class E4Manager( private val interBeatIntervalTopic = createCache("android_empatica_e4_inter_beat_interval", EmpaticaE4InterBeatInterval()) private val temperatureTopic = createCache("android_empatica_e4_temperature", EmpaticaE4Temperature()) private val sensorStatusTopic = createCache("android_empatica_e4_sensor_status", EmpaticaE4SensorStatus()) + private val tagTopic = createCache("android_empatica_e4_tag", EmpaticaE4Tag()) private val isScanning = AtomicBoolean(false) private var hasBeenConnecting = false @@ -272,7 +273,8 @@ class E4Manager( } override fun didReceiveTag(timestamp: Double) { - + val value = EmpaticaE4Tag(timestamp, currentTime) + send(tagTopic, value) } override fun didReceiveGSR(gsr: Float, timestamp: Double) {