From fcdcf1a2a8cc69a9b39ce08e60f804417ac2b4f8 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 18 Nov 2025 12:27:36 +0100 Subject: [PATCH] RNode TCP connection on Android --- RNS/Interfaces/Android/RNodeInterface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RNS/Interfaces/Android/RNodeInterface.py b/RNS/Interfaces/Android/RNodeInterface.py index e042ab2..34da2c1 100644 --- a/RNS/Interfaces/Android/RNodeInterface.py +++ b/RNS/Interfaces/Android/RNodeInterface.py @@ -32,6 +32,7 @@ from RNS.Interfaces.Interface import Interface from time import sleep import sys import threading +import socket import time import math import RNS @@ -1501,7 +1502,7 @@ class RNodeInterface(Interface): except Exception as e: self.online = False - RNS.log("A serial port occurred, the contained exception was: "+str(e), RNS.LOG_ERROR) + RNS.log("A serial port error occurred, the contained exception was: "+str(e), RNS.LOG_ERROR) RNS.log("The interface "+str(self)+" experienced an unrecoverable error and is now offline.", RNS.LOG_ERROR) if RNS.Reticulum.panic_on_interface_error: @@ -1898,7 +1899,7 @@ class TCPConnection(): return len(data_bytes) - def read(self, n): + def read(self, n=4096): with self.owner.tcp_rx_lock: data = self.owner.tcp_rx_queue[:n] self.owner.tcp_rx_queue = self.owner.tcp_rx_queue[n:]