Class Gplp2625
Base class for GroPoint GPLP2625 series soil moisture and temperature sensors. Use this class directly if you have a customer device with non-standard counts of temperature sensors.
Assembly: GroPoint.dll
View Source
public class Gplp2625
Derived:
Properties
MoistureSegmentCount
Gets the number of moisture measurement segments in the sensor.
View Source
public int MoistureSegmentCount { get; }
TempSensorCount
Gets the number of temperature sensors in the device.
View Source
public int TempSensorCount { get; }
Address
Gets the Modbus address of the device.
View Source
public byte Address { get; }
Fields
DefaultModbusAddress
The default Modbus address for GroPoint sensors.
View Source
public const byte DefaultModbusAddress = 1
DefaultBaudRate
The default baud rate for GroPoint sensors.
View Source
public const int DefaultBaudRate = 19200
Methods
ReadIdentifier()
Reads the device identifier from the sensor.
View Source
public Task<string> ReadIdentifier()
Returns
System.Threading.Tasks.Task<System.String>
: A task that represents the asynchronous operation. The task result contains the device identifier as a string.### ReadBaudRate()
Reads the current baud rate setting from the sensor.
View Source
public Task<int> ReadBaudRate()
Returns
System.Threading.Tasks.Task<System.Int32>
: A task that represents the asynchronous operation. The task result contains the baud rate as an integer.### ReadMoistures()
Reads the soil moisture values from all sensor segments.
View Source
public Task<float[]> ReadMoistures()
Returns
System.Threading.Tasks.Task<System.Single[]>
: A task that represents the asynchronous operation.
The task result contains an array of moisture values in percent volumetric water content (VWC).
Exceptions
System.Exception
Thrown when no data can be retrieved after multiple attempts.
ReadTemperatures()
Reads the temperature values from all temperature sensors.
View Source
public Task<Temperature[]> ReadTemperatures()
Returns
System.Threading.Tasks.Task<Meadow.Units.Temperature[]>
: A task that represents the asynchronous operation.
The task result contains an array of temperature values.
Exceptions
System.NotSupportedException
Thrown if the device does not have temperature sensors.
System.Exception
Thrown when no data can be retrieved after multiple attempts.