Skip to content

Commit 2621d47

Browse files
committed
Add device timestamp to the accel data transmission2
Signed-off-by: John Walicki <[email protected]>
1 parent be9f9fa commit 2621d47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WatsonIoT/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ void Send10Seconds2Cloud() {
556556

557557
// Load the key/value pairs into the serialized ArduinoJSON format
558558
status["device_id"] = deviceID ;
559+
status["device_t"] = time(nullptr);
559560

560561
// Generate an array of json objects that contain x,y,z arrays of 32 floats.
561562
// [{"x":[],"y":[],"z":[]},{"x":[],"y":[],"z":[]}]

0 commit comments

Comments
 (0)