File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
schemas/deviceToCloud/battery Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "appId" : " BATTERY" ,
3+ "messageType" : " DATA" ,
4+ "data" : " 50"
5+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments