Go to file
Marco Manca 785231ecc8 Moved libs dir 2023-10-06 11:59:41 +02:00
app Moved libs dir 2023-10-06 11:59:41 +02:00
gradle/wrapper added missing gradle files 2022-07-19 12:27:05 +02:00
libs Moved libs dir 2023-10-06 11:59:41 +02:00
.gitignore added missing gradle files 2022-07-19 12:27:05 +02:00
README.md first cmmit 2022-07-08 11:44:32 +02:00
build.gradle updating gradle files 2022-07-25 11:38:04 +02:00
gradle.properties added missing gradle files 2022-07-19 12:27:05 +02:00
gradlew added missing gradle files 2022-07-19 12:27:05 +02:00
gradlew.bat added missing gradle files 2022-07-19 12:27:05 +02:00
settings.gradle updating gradle files 2022-07-25 11:38:04 +02:00

README.md

E4link Sample Project

Introduction

This sample project gives you the boilerplate code you need to connect to an Empatica E4 device and start streaming data.

The sample application implemented in the project has very simple functionalities:

  • It initializes the E4link library with your API key.
  • If the previous step is successful, it starts scanning for Empatica devices, till it finds one that can be used with the API key you inserted in the code.
  • When such a device has been found, the app connects to the devices and streams data for 10 seconds, then it disconnects.

Setup

  • Clone / download this repository.
  • Open the sample project in Android Studio.
  • Make sure you have a valid API key. You can request one for your Empatica Connect account from our Developer Area.
  • Edit MainActivity.java and assign your API key to the EMPATICA_API_KEY constant .
  • Download the Android E4 link 1.0 or newer SDK from our Developer Area.
  • Unzip the archive youve downloaded and copy the .aar file youll find inside into the libs folder contained in the sample project.
  • Build and run the project.
  • If a device is in range and its light is blinking green, but the app doesnt connect, please check that the discovered device can be used with your API key. If the allowed parameter is always false, the device is not linked to your API key. Please check your Developer Area.

If you need any additional information about the Empatica API for Android, please check the official documentation.