Compare commits

...

2 Commits

Author SHA1 Message Date
856d590eeb Use baud rate from lora.conf or default 2019-10-19 21:30:06 +02:00
c83e7d0901 „lora.conf“ ändern 2019-10-19 21:27:11 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
[DEFAULT] [DEFAULT]
port = /dev/ttyUSB0 port = /dev/ttyUSB0
baud = 57600
appskey = appskey =
nwkskey = nwkskey =
devaddr = devaddr =

View File

@@ -13,7 +13,10 @@ if __name__ == '__main__':
conf = ConfigParser() conf = ConfigParser()
conf.read("lora.conf") conf.read("lora.conf")
root = RN2483(conf.get("DEFAULT", "port")) root = RN2483(
conf.get("DEFAULT", "port"),
conf.get("DEFAULT", "baud", fallback=57600),
)
def first_init() -> None: def first_init() -> None:
"""Init our RN2483 after firmware startup.""" """Init our RN2483 after firmware startup."""