From 9c63d798d011040c586251546177e96cfb3187bd Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 27 Aug 2020 10:49:38 +0200 Subject: [PATCH] comment and readme --- snippets/snippet1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snippets/snippet1.py b/snippets/snippet1.py index 986cd3d..edb281c 100644 --- a/snippets/snippet1.py +++ b/snippets/snippet1.py @@ -112,6 +112,8 @@ class MeterbusSerial(object): self.port.write(msg) + # FIXME: Attention, the actual write time of the interface is not considered. + # This is a measured value. sleep(0.030) frontendHold() @@ -128,6 +130,7 @@ class MeterbusSerial(object): expectedUserDataOctets = 0 state = MeterbusResponseStates.START1 while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]): + print("Waiting for input ... ") c = self.port.read() print("State {}, Octet {}".format(state, c))