Created
March 22, 2017 16:48
-
-
Save maggocnx/19bb04905bb8ca05959270c9bb45c5aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"messageId" : 633000000272, | |
"value" : 14.04, | |
"date" : "2016-11-18T15:14:58", | |
"target" : 125.00, | |
"orderId" : 9, | |
"gpio" : [ | |
{ | |
"id" : 1, | |
"direction" : "in", | |
"value" : false | |
}, | |
{ | |
"id" : 2, | |
"direction" : "out", | |
"value" : true | |
}, | |
{ | |
"id" : 3, | |
"direction" : "in", | |
"value" : false | |
}, | |
{ | |
"id" : 4, | |
"direction" : "in", | |
"value" : true | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"properties": { | |
"messageId": { | |
"type": "integer" | |
}, | |
"value": { | |
"type": "number" | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"target": { | |
"type": "number" | |
}, | |
"orderId": { | |
"type": "integer" | |
}, | |
"gpio": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"direction": { | |
"type": "string", | |
"pattern" : "(in|out)" | |
}, | |
"value": { | |
"type": "boolean", | |
} | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment