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