a85b08f050
* Changing files but having issues with space tabs. * Removed config. Fixed indents. * Removed config. * Fixed test config. Fixed syntax in cli. * Editing cli and hub to finally commit transactions. * Added better logging logic. Will clean up in the morning. * Hub is more functional. * Edited IoT to gen keys. * Public keys are now generated, sent, and stored. However, they are not transmitted when a new client joins. * Added crypto testing * Communication is now functional.
71 lines
873 B
JSON
71 lines
873 B
JSON
{
|
|
"ext-srv":{
|
|
"init":{
|
|
"name":"name",
|
|
"pub_key":"pub_key"
|
|
},
|
|
"msg":{
|
|
"id":0,
|
|
"to":0,
|
|
"contents":"contents"
|
|
}
|
|
},
|
|
"srv-ext":{
|
|
"init":{
|
|
"name":"name",
|
|
"available_cli": "public_key_zero",
|
|
"available_iots":[
|
|
"public_key_one",
|
|
"public_key_two"
|
|
]
|
|
},
|
|
"msg":{
|
|
"contents":"contents"
|
|
}
|
|
},
|
|
"int-srv":{
|
|
"init":{
|
|
"name":"name",
|
|
"pub_key":"public_key_zero"
|
|
},
|
|
"msg":{
|
|
"to":0,
|
|
"contents":"contents"
|
|
}
|
|
},
|
|
"srv-int":{
|
|
"init":{
|
|
"available_clients":[
|
|
"clients"
|
|
]
|
|
},
|
|
"msg":{
|
|
"id":0,
|
|
"position":0,
|
|
"contents":"contents"
|
|
},
|
|
"sys":{
|
|
"msg"
|
|
}
|
|
},
|
|
"iot-srv":{
|
|
"init":{
|
|
"id":0,
|
|
"pub_key":"public_key_one"
|
|
},
|
|
"msg":{
|
|
"id":0,
|
|
"contents":"contents"
|
|
}
|
|
},
|
|
"srv-iot":{
|
|
"init":{
|
|
"client_available":false
|
|
},
|
|
"msg":{
|
|
"id":0,
|
|
"contents":"contents"
|
|
}
|
|
}
|
|
}
|