Skip to content

Commit 37ac0f3

Browse files
committed
feat(app): add BATTERY
see nrfconnect/sdk-nrf#10927
1 parent f5de021 commit 37ac0f3

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"appId": "BATTERY",
3+
"messageType": "DATA",
4+
"data": "50"
5+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title":"Battery fuel gauge percentage",
3+
"description":"Battery percentage provided by the PMIC's fuel gauge function.",
4+
"type":"object",
5+
"properties":{
6+
"appId":{
7+
"type":"string",
8+
"const":"BATTERY"
9+
},
10+
"messageType":{
11+
"type":"string",
12+
"const":"DATA"
13+
},
14+
"data":{
15+
"type":"string",
16+
"description":"Percentage (0-100)",
17+
"pattern":"^(0|[1-9][0-9]?|100)$"
18+
},
19+
"ts": {
20+
"type": "number",
21+
"description": "Unix timestamp given in milliseconds when the data was sampled"
22+
}
23+
},
24+
"required":[
25+
"appId",
26+
"messageType",
27+
"data",
28+
"ts"
29+
],
30+
"additionalProperties":false
31+
}

0 commit comments

Comments
 (0)