This commit is contained in:
Your Name
2025-03-12 17:55:30 +01:00
parent d57a47ef68
commit 14044a8856
4 changed files with 99 additions and 3 deletions

12
MPPT/read.py Normal file
View File

@@ -0,0 +1,12 @@
import serial
def read_vedirect(port='/dev/serial0', baudrate=19200):
ser = serial.Serial(port, baudrate, timeout=1)
while True:
line = ser.readline().decode('utf-8', errors='ignore').strip()
if line:
print(line) # Raw data from Victron
if __name__ == "__main__":
read_vedirect()