Preparing files, stubs, and skeletons for 2nd benchmark
[iot2.git] / localconfig / iotpolicy / SpruceSensor / moisturesensorcallback.pol
diff --git a/localconfig/iotpolicy/SpruceSensor/moisturesensorcallback.pol b/localconfig/iotpolicy/SpruceSensor/moisturesensorcallback.pol
new file mode 100644 (file)
index 0000000..4b636fc
--- /dev/null
@@ -0,0 +1,11 @@
+public interface MoistureSensorCallback {
+
+       public void newReadingAvailable(int sensorId, float moisture, long timeStampOfLastReading);
+
+       capability Callback {
+               description = "Callback method";
+               method = "newReadingAvailable(int sensorId, float moisture, long timeStampOfLastReading)";
+       }
+}
+
+