Skip to content

Commit

Permalink
Merge pull request #391 from this-Aditya/tags
Browse files Browse the repository at this point in the history
fun didreceiveTag() will now send the received tag data to platform
  • Loading branch information
yatharthranjan authored May 9, 2024
2 parents ea2aa8d + a98a6cb commit f7e4092
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f7e4092

Please sign in to comment.