mirror of
https://github.com/eclipse/upm.git
synced 2025-06-10 23:30:27 +03:00

This module implements support for the Comet System T3311 Temperature and Humidity transmitter. It uses MODBUS over an RS232 serial port. You must have libmodbus v3.1.2 (or greater) installed to compile and use this driver. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
24 lines
465 B
OpenEdge ABL
24 lines
465 B
OpenEdge ABL
%module javaupm_t3311
|
|
%include "../upm.i"
|
|
%include "typemaps.i"
|
|
%include "cpointer.i"
|
|
%include "arrays_java.i";
|
|
%include "../java_buffer.i"
|
|
|
|
%{
|
|
#include "t3311.h"
|
|
%}
|
|
|
|
%include "t3311.h"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_t3311");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|