mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Add files via upload
This commit is contained in:
parent
08b76ff0cb
commit
63b68c479e
1 changed files with 4 additions and 2 deletions
|
@ -123,11 +123,13 @@ class CMDTCPRequestHandler(socketserver.BaseRequestHandler):
|
|||
static.DXCALLSIGN_CRC8 = helpers.get_crc_8(static.DXCALLSIGN)
|
||||
|
||||
#dataframe = '{"filename": "'+ filename + '", "filetype" : "' + filetype + '", "data" : "' + data + '", "checksum" : "' + checksum + '"}'
|
||||
dataframe = {"filename" : filename , "filetype" :filetype, "data" : data, "checksum" :checksum}
|
||||
rawdata = {"filename" : filename , "filetype" :filetype, "data" : data, "checksum" : checksum}
|
||||
#dataframe = {filename: filename}
|
||||
#data_out = bytes(received_json["data"], 'utf-8')
|
||||
dataframe = json.dumps(rawdata)
|
||||
print(dataframe)
|
||||
data_out = bytes(dataframe, 'utf-8')
|
||||
|
||||
print(data_out)
|
||||
|
||||
|
||||
#ARQ_DATA_THREAD = threading.Thread(target=data_handler.arq_transmit, args=[data_out], name="ARQ_DATA")
|
||||
|
|
Loading…
Reference in a new issue