The cause of this issue is that the base-node-rpc==0.51_read_device_id() assumes the next incoming packet after writing a ID_REQUEST packet is a ID_RESPONSE packet. However, this may not be true if the device is writing, e.g., streaming packets (i.e., packets with STREAM type).
Proposed fix
Discard any incoming packets that are not of type ID_RESPONSE.
Problem
For example:
Cause
The cause of this issue is that the
base-node-rpc==0.51
_read_device_id()
assumes the next incoming packet after writing aID_REQUEST
packet is aID_RESPONSE
packet. However, this may not be true if the device is writing, e.g., streaming packets (i.e., packets withSTREAM
type).Proposed fix
Discard any incoming packets that are not of type
ID_RESPONSE
.