starting changing code to new API
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user