mirror of
https://github.com/stylersnico/teleinfo-linky-with-raspberry.git
synced 2026-06-04 16:18:25 +02:00
Updated Parity and Serial location
This commit is contained in:
+2
-2
@@ -87,10 +87,10 @@ def verif_checksum(data, checksum):
|
||||
|
||||
|
||||
def main():
|
||||
with serial.Serial(port='/dev/ttyS0', baudrate=1200, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE,
|
||||
with serial.Serial(port='/dev/ttyUSB0', baudrate=1200, parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_ONE,
|
||||
bytesize=serial.SEVENBITS, timeout=1) as ser:
|
||||
|
||||
logging.info("Teleinfo is reading on /dev/ttyS0..")
|
||||
logging.info("Teleinfo is reading on /dev/ttyUSB0..")
|
||||
|
||||
trame = dict()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user