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))