Skip to content

Commit 3bcb036

Browse files
committed
fix: update schems to reflect what asset_tracker_v2 is actually sending
1 parent 48e763d commit 3bcb036

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

schemas/deviceToCloud/device/device-example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"currentBand": 12,
77
"supportedBands": "(2,3,4,8,12,13,20,28)\r\n",
88
"areaCode": 34049,
9-
"mccmnc": "310410",
9+
"mccmnc": 310410,
1010
"ipAddress": "10.165.197.1",
1111
"ueMode": 2,
1212
"cellID": 128566289,

schemas/deviceToCloud/device/device.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
"type": "integer"
5555
},
5656
"mccmnc": {
57-
"type": "string",
57+
"type": "integer",
5858
"description": "Combination of the mobile country code and mobile network codes",
59-
"pattern": "^\\d+$"
59+
"minimum": 10000
6060
},
6161
"ipAddress": {
6262
"type": "string"
@@ -69,6 +69,9 @@
6969
},
7070
"networkMode": {
7171
"type": "string"
72+
},
73+
"rsrp": {
74+
"type": "integer"
7275
}
7376
},
7477
"required": [
@@ -77,9 +80,7 @@
7780
"currentBand",
7881
"ipAddress",
7982
"mccmnc",
80-
"networkMode",
81-
"supportedBands",
82-
"ueMode"
83+
"networkMode"
8384
],
8485
"title": "NetworkInfo"
8586
},
@@ -127,12 +128,13 @@
127128
},
128129
"appName": {
129130
"type": "string"
131+
},
132+
"iccid": {
133+
"type": "string"
130134
}
131135
},
132136
"required": [
133-
"appName",
134137
"appVersion",
135-
"batteryVoltage",
136138
"board",
137139
"imei",
138140
"modemFirmware"

0 commit comments

Comments
 (0)