You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Marco Manca 785231ecc8 Moved libs dir 7 months ago
app Moved libs dir 7 months ago
gradle/wrapper added missing gradle files 2 years ago
libs Moved libs dir 7 months ago
.gitignore added missing gradle files 2 years ago
README.md first cmmit 2 years ago
build.gradle updating gradle files 2 years ago
gradle.properties added missing gradle files 2 years ago
gradlew added missing gradle files 2 years ago
gradlew.bat added missing gradle files 2 years ago
settings.gradle updating gradle files 2 years ago

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.