pub trait RainFallClient {
// Required method
fn callback(&self, value: Result<usize, ErrorCode>);
}
Expand description
Client for receiving moisture readings.
Required Methods§
Sourcefn callback(&self, value: Result<usize, ErrorCode>)
fn callback(&self, value: Result<usize, ErrorCode>)
Called when a moisture reading has completed.
value
: the number of um of rain in the time period specified, or Err on failure.
This function might return the following errors:
BUSY
: Indicates that the hardware is busy with an existing operation or initialisation/calibration.NOSUPPORT
: Indicates that the value ofhours
is not supported.