21 lines
514 B
Python
21 lines
514 B
Python
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 |