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

This module implements support for the DFRobot EC (Electrical Conductivity) meter. It relies on the use of the DS18B20 UPM C module for temperature gathering. It has a pretty complicated calibration procedure which is somewhat documented on the DFRobot wiki. Functions have been added to support changing the various coefficients as desired. Signed-off-by: Jon Trulson <jtrulson@ics.com>
14 lines
272 B
OpenEdge ABL
14 lines
272 B
OpenEdge ABL
%module jsupm_dfrec
|
|
%include "../upm.i"
|
|
%include "std_string.i"
|
|
%include "cpointer.i"
|
|
|
|
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
|
%pointer_functions(int, intp);
|
|
%pointer_functions(float, floatp);
|
|
|
|
%include "dfrec.hpp"
|
|
%{
|
|
#include "dfrec.hpp"
|
|
%}
|