You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I am not in favor of this change.
To determine whether the UDP request was successful, L.211 in echonetMessageReceived() deletes the key TID from self._message_list. Since this is a loop to wait for the deletion, it is necessary to check that the key TID does not exist.
Therefore, I think it should remain as it is: if self._message_list.get(tx_tid) is None:.
The reason will be displayed to describe this comment to others. Learn more.
@nao-pon there is a problem where the TID for that particular GETC transaction is not being correctly erased, and it is remaining as {} for the full 30 seconds.
Having looked at the code a bit more this morning, I do see how it would be populated with {} during GETC. What I don’t understand is why it is fully timing out.
The reason will be displayed to describe this comment to others. Learn more.
I think the real issue is possibly in the echonet_received function, it’s not correctly erasing the TID dict, leaving it as {} which is what is applicable for GETC messages. It’s possibly a unique issue to Mitsubishis
There is definitely an issue however with the way it is processing those incoming packets.
19e56c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not in favor of this change.
To determine whether the UDP request was successful, L.211 in echonetMessageReceived() deletes the key TID from self._message_list. Since this is a loop to wait for the deletion, it is necessary to check that the key TID does not exist.
Therefore, I think it should remain as it is:
if self._message_list.get(tx_tid) is None:
.19e56c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nao-pon there is a problem where the TID for that particular GETC transaction is not being correctly erased, and it is remaining as {} for the full 30 seconds.
Having looked at the code a bit more this morning, I do see how it would be populated with {} during GETC. What I don’t understand is why it is fully timing out.
19e56c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the real issue is possibly in the echonet_received function, it’s not correctly erasing the TID dict, leaving it as {} which is what is applicable for GETC messages. It’s possibly a unique issue to Mitsubishis
There is definitely an issue however with the way it is processing those incoming packets.