SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
#include "weight.h"
Go to the source code of this file.
Functions | |
char * | read_weight (char *buffer, int len) |
Gets the weight from the scale. More... | |
char* read_weight | ( | char * | buffer = weight_buf , |
int | len = 20 |
||
) |
Gets the weight from the scale.
This function is intended for the OHAUS Defender 3000 scale. It communicates over RS232 using 5V and -5V voltage levels, which will fry your microcontroller if connected directly. You will need an RS232 line driver. This function prevents buffer overruns, but no data validation is performed.
buffer | The string to store the data into (Default value is ok) |
len | The length of the buffer. (Default value is ok) |
Definition at line 6 of file weight.cpp.