comment and readme
This commit is contained in:
parent
db6ed1da7a
commit
9c63d798d0
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user