temperature: added C sources and removed grove dependency

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2016-09-09 18:33:30 -07:00
committed by Noel Eck
parent af61f51e48
commit 67d01a9393
16 changed files with 472 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
%module (docstring="Temperature sensor") javaupm_temperature
%include "../upm.i"
%include "temperature.hpp"
%{
#include "temperature.hpp"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_temperature");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}