Implementing stuff (I suck at commits sometimes lol)
This commit is contained in:
21
DecisionSystem/mqttvoter.py
Normal file
21
DecisionSystem/mqttvoter.py
Normal 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
|
||||
Reference in New Issue
Block a user