Added KISS framing option to TCP client interface

This commit is contained in:
Mark Qvist 2021-12-06 13:07:12 +01:00
parent 8fe7c19c59
commit 2e4fcc659c
2 changed files with 80 additions and 22 deletions

View file

@ -333,11 +333,16 @@ class Reticulum:
if c["type"] == "TCPClientInterface":
kiss_framing = False
if "kiss_framing" in c and c.as_bool("kiss_framing") == True:
kiss_framing = True
interface = TCPInterface.TCPClientInterface(
RNS.Transport,
name,
c["target_host"],
int(c["target_port"])
int(c["target_port"]),
kiss_framing = kiss_framing
)
if "outgoing" in c and c.as_bool("outgoing") == True: