1 public interface MoistureSensor {
4 public float getMoisture();
5 public long getTimestampOfLastReading();
6 public void setId(int id);
8 public void registerCallback(MoistureSensorCallback _callbackTo);
10 capability Initialize {
11 description = "Initialize object";
13 method = "registerCallback(MoistureSensorCallback _callbackTo)";
17 description = "Handle moisture value";
18 method = "getMoisture()";
19 method = "getTimestampOfLastReading()";
23 description = "Manage sensor Id";
24 method = "setId(int id)";