starting changing code to new API

This commit is contained in:
2022-07-04 15:22:53 +02:00
parent fd5b946810
commit 27edcbd71d
34 changed files with 1472 additions and 1737 deletions

View File

@ -11,7 +11,6 @@ LOGGER = get_console_logger()
class TmTcpServer:
def __init__(self, ip_address: str, port: int):
self.server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@ -70,7 +69,7 @@ class TmTcpServer:
data_dict = {
"type": "TM",
"tmType": "Raw HK",
"objectId": object_id.as_string,
"objectId": object_id.as_hex_string,
"setId": set_id,
"rawData": base64.b64encode(hk_data).decode(),
}
@ -81,7 +80,7 @@ class TmTcpServer:
data_dict = {
"type": "TM",
"tmType": "Parsed HK",
"objectId": object_id.as_string,
"objectId": object_id.as_hex_string,
"setId": set_id,
"content": data_dictionary,
}