Skip to content

adawarp/meme-sdk-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JINS MEME SDK Wrapper for Java

This wrapper imitates Android-like environment to run Meme SDK in JDK.

Requirements

  • JDK 7 (with option -XX:-UseSplitVerifier) or JDK 8 (with option -noverify)
  • Meme SDK for Android (Tested with 1.1.0 2016.02.19)
  • Maven

Usage

MemeSdk meme = new MemeSdk(new Listener() {
	@Override
	public void deviceReady() {
		System.out.println("Meme Device Ready");
		// Meme device is successfully setup, now you can call startDataReport.
		meme.startDataReport(memeListener);
	}

	@Override
	public void writeCommand(byte[] gattValue) {
		// You must send gattValue to actual TX characteristic.
	}
});
meme.initialize();
// You need to call this method when GATT notification is received from RX characteristic.
meme.responseCommand(gattValue);

How to Build (JDK 7)

Open with NetBeans

How to Build (JDK 8)

 $ git clone https://github.com/FantomJAC/meme-sdk-wrapper

Download JINS Meme SDK (need to sign up) and unzip.

 $ mv /path/to/memelib/MemeLib.jar meme-sdk-wrapper/
 $ cd meme-sdk-wrapper
 $ ./install-meme-lib.sh
 $ mvn install
 $ mvn compile

Quick Start

 $ ./run.sh

About

JINS Meme SDK Wrapper for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published