Add tf graphs and update some web stuff

This commit is contained in:
Michael Pivato
2019-02-07 07:03:10 +10:30
parent 73f4297c5a
commit 71f7a0d8a4
4 changed files with 3174 additions and 4 deletions

View File

@@ -3,10 +3,12 @@ class MqttMessenger{
};
class BallotVoter{
constructor(onVote, messenger) {
this.cfg = ""; //load the configuration file.
constructor(onVote, messenger, host) {
// Not using a configuration file.
this.messenger = messenger;
this.host = host;
this.swarm = "swarm";
};
onConnect(){
@@ -17,5 +19,12 @@ class BallotVoter{
onMessage(message){
print("Message Received");
// Unpack the message.
messageb = message.payloadBytes;
var messageD = msgpack.decode(message.payloadBytes)
console.log(messageD)
if(messageD["type"] == "reqvote"){
console.log("Received vote message");
submit_vote();
}
};
};