mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-10 15:30:44 -04:00
Migrated to Python3
This commit is contained in:
parent
a339ae3d28
commit
fa50e1d35b
7 changed files with 171 additions and 156 deletions
|
@ -233,6 +233,7 @@ class Reticulum:
|
|||
bandwidth = int(c["bandwidth"]) if "bandwidth" in c else None
|
||||
txpower = int(c["txpower"]) if "txpower" in c else None
|
||||
spreadingfactor = int(c["spreadingfactor"]) if "spreadingfactor" in c else None
|
||||
flow_control = (True if c["flow_control"] == "true" else False) if "flow_control" in c else False
|
||||
|
||||
port = c["port"] if "port" in c else None
|
||||
|
||||
|
@ -246,7 +247,8 @@ class Reticulum:
|
|||
frequency,
|
||||
bandwidth,
|
||||
txpower,
|
||||
spreadingfactor
|
||||
spreadingfactor,
|
||||
flow_control
|
||||
)
|
||||
|
||||
if "outgoing" in c and c["outgoing"].lower() == "true":
|
||||
|
@ -259,6 +261,7 @@ class Reticulum:
|
|||
except Exception as e:
|
||||
RNS.log("The interface \""+name+"\" could not be created. Check your configuration file for errors!", RNS.LOG_ERROR)
|
||||
RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||
raise e
|
||||
|
||||
|
||||
def createDefaultConfig(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue