File transfer example

This commit is contained in:
Mark Qvist 2018-04-26 01:05:04 +02:00
parent 6a3eb8a1e3
commit b7e69e5f91

View File

@ -86,8 +86,6 @@ def client_connected(link):
# We pack a list of files for sending in a packet # We pack a list of files for sending in a packet
data = umsgpack.packb(list_files()) data = umsgpack.packb(list_files())
RNS.log(str(len(data)))
# Check the size of the packed data # Check the size of the packed data
if len(data) <= RNS.Reticulum.LINK_MDU: if len(data) <= RNS.Reticulum.LINK_MDU:
# If it fits in one packet, we will just # If it fits in one packet, we will just