Tweaked phone app for testbed experiment; tweaked testbed files
[iotcloud.git] / version2 / src / others / ino / IR-Sensor / IR-Sensor_Fidelius-Cloud.ino
index cf27477a216c42c3e85159431a8224fe3fc3182e..cab6e5c065c561d8f7d8982ae401474bcbd04671 100644 (file)
@@ -88,10 +88,11 @@ void setup() {
 void loop() {
 
        // Machine ID
-       sprintf(keyBuffer, "ir%04x", machineId);
+       sprintf(keyBuffer, "i%04x", machineId);
        IoTString * iKey = new IoTString(keyBuffer);
        // Do updates for the motion detection
-       sprintf(dataBuffer, "%s -> motion-detected", wakeupTime.c_str());
+       //sprintf(dataBuffer, "%s -> motion-detected", wakeupTime.c_str());
+       sprintf(dataBuffer, "%s", "motion");
        IoTString * iValue = new IoTString(dataBuffer);
 
        // Check and create a new key if it isn't created yet