-
Notifications
You must be signed in to change notification settings - Fork 2
update schemas to reflect what asset_tracker_v2 is actually sending #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1
Are you sure you want to change the base?
Changes from all commits
0c14a25
2176ca1
f5de021
37ac0f3
17bf755
a044f66
b38eafc
f294ba7
90e099f
856c2ff
a2db029
727496f
30a546e
5ba9b31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"appId": "BATTERY", | ||
"messageType": "DATA", | ||
"data": "50" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"title":"Battery fuel gauge percentage", | ||
"description":"Battery percentage provided by the PMIC's fuel gauge function.", | ||
"type":"object", | ||
"properties":{ | ||
"appId":{ | ||
"type":"string", | ||
"const":"BATTERY" | ||
}, | ||
"messageType":{ | ||
"type":"string", | ||
"const":"DATA" | ||
}, | ||
"data":{ | ||
"type":"string", | ||
"description":"Percentage (0-100)", | ||
"pattern":"^(0|[1-9][0-9]?|100)$" | ||
}, | ||
"ts": { | ||
"type": "number", | ||
"description": "Unix timestamp given in milliseconds when the data was sampled" | ||
} | ||
}, | ||
"required":[ | ||
"appId", | ||
"messageType", | ||
"data", | ||
"ts" | ||
], | ||
"additionalProperties":false | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,9 @@ | |
"type": "integer" | ||
}, | ||
"mccmnc": { | ||
"type": "string", | ||
"type": "integer", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this has been a string for a long time. |
||
"description": "Combination of the mobile country code and mobile network codes", | ||
"pattern": "^\\d+$" | ||
"minimum": 10000 | ||
}, | ||
"ipAddress": { | ||
"type": "string" | ||
|
@@ -69,6 +69,9 @@ | |
}, | ||
"networkMode": { | ||
"type": "string" | ||
}, | ||
"rsrp": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
|
@@ -77,9 +80,7 @@ | |
"currentBand", | ||
"ipAddress", | ||
"mccmnc", | ||
"networkMode", | ||
"supportedBands", | ||
"ueMode" | ||
"networkMode" | ||
], | ||
"title": "NetworkInfo" | ||
}, | ||
|
@@ -113,9 +114,6 @@ | |
"modemFirmware": { | ||
"type": "string" | ||
}, | ||
"batteryVoltage": { | ||
"type": "integer" | ||
}, | ||
"imei": { | ||
"type": "string" | ||
}, | ||
|
@@ -127,12 +125,13 @@ | |
}, | ||
"appName": { | ||
"type": "string" | ||
}, | ||
"iccid": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ICCID, along with IMSI and UICC mode, has been reported in the "simInfo" section for a long time. |
||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"appName", | ||
"appVersion", | ||
"batteryVoltage", | ||
"board", | ||
"imei", | ||
"modemFirmware" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the modem_info library provides a string for this value.
the nrf_cloud library reports this value as a string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current asset_tracker_v2 sends number:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a breaking change for fw apps using modem_info library or nrf_cloud library to update the shadow.