FreeDATA/modem/data_handler.py

36 lines
651 B
Python
Raw Normal View History

# -*- coding: UTF-8 -*-
2021-02-24 13:22:28 +00:00
"""
Created on Sun Dec 27 20:43:40 2020
@author: DJ2LS
"""
# pylint: disable=invalid-name, line-too-long, c-extension-no-member
# pylint: disable=import-outside-toplevel, attribute-defined-outside-init
2023-08-18 06:29:26 +00:00
# pylint: disable=fixme
2021-02-24 13:22:28 +00:00
import threading
import helpers
import structlog
from modem_frametypes import FRAME_TYPE as FR_TYPE
2023-11-20 08:00:07 +00:00
import event_manager
2023-11-19 13:56:29 +00:00
2023-11-19 16:09:47 +00:00
2023-04-26 16:23:49 +00:00
TESTMODE = False
2022-05-09 00:41:49 +00:00
2022-05-09 01:27:24 +00:00
2022-05-19 20:15:24 +00:00
class DATA:
"""Terminal Node Controller for FreeDATA"""
log = structlog.get_logger("DATA")
2023-02-06 15:56:50 +00:00
def __init__(self, config, event_queue, states):
2023-11-19 16:09:47 +00:00
self.config = config
self.event_queue = event_queue
self.states = states