Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Addings template JSON files to define the structure of packets
  • Loading branch information
Evan Langlais committed Feb 11, 2019
1 parent d4c5c20 commit a84605b
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 0 deletions.
28 changes: 28 additions & 0 deletions data_packet.json
@@ -0,0 +1,28 @@
{
"type": "data",
"id": "000000000",
"timestamp": "1549829742",
"payload": {
"oil.temp": [
{ "1549829742": "21" },
{ "1549829802": "24" },
{ "1549829862": "18" },
{ "1549829922": "30" },
{ "1549829982": "25" }
],
"air.temp": [
{ "1549829742": "21" },
{ "1549829802": "24" },
{ "1549829862": "18" },
{ "1549829922": "30" },
{ "1549829982": "25" }
],
"fuel.temp": [
{ "1549829742": "21" },
{ "1549829802": "24" },
{ "1549829862": "18" },
{ "1549829922": "30" },
{ "1549829982": "25" }
]
}
}
8 changes: 8 additions & 0 deletions data_response.json
@@ -0,0 +1,8 @@
{
"type": "data",
"id": "000000000",
"timestamp": "1549829742",
"response": {
"status": "accepted"
}
}
5 changes: 5 additions & 0 deletions heartbeat_packet.json
@@ -0,0 +1,5 @@
{
"type": "heartbeat",
"id": "000000000",
"timestamp": "1549829742"
}
5 changes: 5 additions & 0 deletions heartbeat_response.json
@@ -0,0 +1,5 @@
{
"type": "heartbeat",
"id": "000000000",
"timestamp": "1549829742"
}
14 changes: 14 additions & 0 deletions notification_packet.json
@@ -0,0 +1,14 @@
{
"type": "notification",
"id": "000000000",
"timestamp": "1549829742",
"identity": {
"owner_id": "1",
"region": "east"
},
"payload": {
"code": 0,
"severity": 3,
"message": "Notification Text"
}
}
8 changes: 8 additions & 0 deletions notification_response.json
@@ -0,0 +1,8 @@
{
"type": "notification",
"id": "000000000",
"timestamp": "1549829742",
"response": {
"status": "accepted"
}
}
7 changes: 7 additions & 0 deletions registration_packet.json
@@ -0,0 +1,7 @@
{
"type": "registration",
"timestamp": "1549829742",
"payload": {
"serial": "123abc456def"
}
}
10 changes: 10 additions & 0 deletions registration_response.json
@@ -0,0 +1,10 @@
{
"type": "registration",
"id": "000000000",
"timestamp": "1549829742",
"response": {
"region": "east",
"generator_id": "000000000",
"owner_id": "1"
}
}

0 comments on commit a84605b

Please sign in to comment.