Пример #1
0
    def __init__(self, debug_mode=False, timeout=10.0):
        self.data_handler = DataHandler()
        self.connector = SocketHandler(timeout)
        self.debug = debug_mode
        self.bot = Bot()

        self.DEFAULT_TICKS = 2*(1000//50)
        self.ticks = self.DEFAULT_TICKS
Пример #2
0
    def __init__(self, mainWindow):

        self.PORT = 8266  # Socket Port

        self.mainWindow = mainWindow

        self.FRAME_DECODDER = {
            'STA': self.statusReceived,
            'SEN': self.sensorsReceived
        }

        self.socketHandler = SocketHandler()