update
This commit is contained in:
3
debug.py
Normal file → Executable file
3
debug.py
Normal file → Executable file
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
from solaxx3.rs485 import SolaxX3
|
||||
solax_items=[
|
||||
"power_dc1",
|
||||
@@ -65,7 +66,7 @@ openhab_items=[
|
||||
]
|
||||
|
||||
# adjust the serial port and baud rate as necessary
|
||||
s = SolaxX3(port="/dev/ttySOLAX", baudrate=19200)
|
||||
s = SolaxX3(port="/dev/ttyUSB0", baudrate=19200)
|
||||
data =[]
|
||||
if s.connect():
|
||||
s.read_all_registers()
|
||||
|
||||
Reference in New Issue
Block a user