Implementing stuff (I suck at commits sometimes lol)

This commit is contained in:
DSTO\pivatom
2018-12-13 11:00:27 +10:30
parent 750624fe2b
commit 6f0bd56b4a
9 changed files with 146 additions and 19 deletions

View File

@@ -0,0 +1,21 @@
from voter import Voter
import Messaging.mqttsession as ms
from Messaging.packmessage import PackMessage
class MqttVoter(Voter):
def __init__(self):
# Should use a factory here to always get the same session.
# Just going to use a singleton for now, as there should only be
# one session in the program.
ms.client = ms.Client()
ms.host = "10.0.123.11"
def submit_vote(self):
pass
def set_vote(self):
pass
def get_vote(self):
pass