mirror of
https://github.com/eclipse/upm.git
synced 2025-03-23 17:00:03 +03:00

This module implements support for the DFRobot Analog ORP (Oxidation/Reduction Potential) Meter. It requires 5.0 volts, but the more accurate the voltage specified (to the constructor), the more accurate the meter (paraphrased from the wiki). Signed-off-by: Jon Trulson <jtrulson@ics.com>
22 lines
442 B
OpenEdge ABL
22 lines
442 B
OpenEdge ABL
%module javaupm_dfrorp
|
|
%include "../upm.i"
|
|
%include "std_string.i"
|
|
%include "cpointer.i"
|
|
%include "typemaps.i"
|
|
|
|
%include "dfrorp.hpp"
|
|
%{
|
|
#include "dfrorp.hpp"
|
|
%}
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_dfrorp");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|