Compare commits
2 Commits
bbceb8683b
...
856d590eeb
| Author | SHA1 | Date | |
|---|---|---|---|
| 856d590eeb | |||
| c83e7d0901 |
@@ -1,5 +1,6 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
port = /dev/ttyUSB0
|
port = /dev/ttyUSB0
|
||||||
|
baud = 57600
|
||||||
appskey =
|
appskey =
|
||||||
nwkskey =
|
nwkskey =
|
||||||
devaddr =
|
devaddr =
|
||||||
|
|||||||
@@ -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."""
|
||||||
|
|||||||
Reference in New Issue
Block a user