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": {