File transfer example
This commit is contained in:
parent
6a3eb8a1e3
commit
b7e69e5f91
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user