New smartmeter

This commit is contained in:
2025-07-16 15:20:39 +02:00
parent abe9328460
commit 40d4956be3
7 changed files with 22 additions and 14 deletions

View File

@@ -18,10 +18,10 @@ if __FILE__ == $0
#params for serial port
port_str = "/dev/ttyUSB0" #may be different for you
baud_rate = 9600
data_bits = 7
baud_rate = 115200
data_bits = 8
stop_bits = 1
parity = SerialPort::EVEN
parity = SerialPort::NONE
sp = SerialPort.new(port_str, baud_rate, data_bits, stop_bits, parity)