From 562dc715d8ff277af8125dfd53aaef05e5bb8a46 Mon Sep 17 00:00:00 2001 From: Cole Hafner Date: Thu, 9 Oct 2025 10:43:18 +0200 Subject: [PATCH] feat: added ground-fix timestamp to schema and examples --- .../ground-fix-example-with-ts.json | 11 +++++ .../cloudToDevice/ground_fix/ground-fix.json | 4 ++ .../ground-fix-example-with-ts.json | 42 +++++++++++++++++++ .../deviceToCloud/ground_fix/ground-fix.json | 4 ++ 4 files changed, 61 insertions(+) create mode 100644 schemas/cloudToDevice/ground_fix/ground-fix-example-with-ts.json create mode 100644 schemas/deviceToCloud/ground_fix/ground-fix-example-with-ts.json diff --git a/schemas/cloudToDevice/ground_fix/ground-fix-example-with-ts.json b/schemas/cloudToDevice/ground_fix/ground-fix-example-with-ts.json new file mode 100644 index 0000000..5b0e567 --- /dev/null +++ b/schemas/cloudToDevice/ground_fix/ground-fix-example-with-ts.json @@ -0,0 +1,11 @@ +{ + "appId": "GROUND_FIX", + "messageType": "DATA", + "ts": 1759999147091, + "data": { + "lat": -45, + "lon": 100, + "uncertainty": 500, + "fulfilledWith": "WIFI" + } +} diff --git a/schemas/cloudToDevice/ground_fix/ground-fix.json b/schemas/cloudToDevice/ground_fix/ground-fix.json index 4fd7ed6..aac1d49 100644 --- a/schemas/cloudToDevice/ground_fix/ground-fix.json +++ b/schemas/cloudToDevice/ground_fix/ground-fix.json @@ -11,6 +11,10 @@ "type":"string", "const":"DATA" }, + "ts": { + "type": "number", + "description": "Unix timestamp given in milliseconds when the data was sampled" + }, "data":{ "type":"object", "properties":{ diff --git a/schemas/deviceToCloud/ground_fix/ground-fix-example-with-ts.json b/schemas/deviceToCloud/ground_fix/ground-fix-example-with-ts.json new file mode 100644 index 0000000..e0fc369 --- /dev/null +++ b/schemas/deviceToCloud/ground_fix/ground-fix-example-with-ts.json @@ -0,0 +1,42 @@ +{ + "appId": "GROUND_FIX", + "messageType": "DATA", + "ts": 1759999147091, + "config": { + "doReply": true, + "hiConf": false, + "fallback": true, + "cont": false + }, + "data": { + "wifi": { + "accessPoints": [ + { + "macAddress": "fd:70:40:b9:58:dc" + }, + { + "macAddress": "c5:ab:c7:55:8d:e3" + } + ] + }, + "lte": [ + { + "mnc": 260, + "mcc": 310, + "eci": 21858829, + "tac": 333, + "rsrp": -157, + "rsrq": -34.5, + "earfcn": 41490, + "nmr": [ + { + "pci": 143, + "earfcn": 41490, + "rsrp": -44, + "rsrq": -3.5 + } + ] + } + ] + } +} diff --git a/schemas/deviceToCloud/ground_fix/ground-fix.json b/schemas/deviceToCloud/ground_fix/ground-fix.json index 0dc7cd2..d9aa2d9 100644 --- a/schemas/deviceToCloud/ground_fix/ground-fix.json +++ b/schemas/deviceToCloud/ground_fix/ground-fix.json @@ -11,6 +11,10 @@ "type": "string", "const": "DATA" }, + "ts": { + "type": "number", + "description": "Unix timestamp given in milliseconds when the data was sampled" + }, "config": { "type": "object", "properties": {