-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insteon: PLM Parser Should: 1 Log Dropped Messages and 2 Decode All Messages #186
Comments
Hi Kevin, On 05/15/2013 02:11 PM, Kevin Robert Keegan wrote:
I am wondering about your last comment regarding possibility of doing The obvious approach to producing a log message for this situation (my 05/15/13 03:21:20 PM [Insteon_PLM] DEBUG3: Received PLM raw data: 05/15/13 03:21:20 PM [Insteon::BaseInterface] DEBUG3: Message received I guess another approach is to not do anything here and let the new Cheers, Eloy Paris.- --- a/lib/Insteon_PLM.pm
|
The parsing function is somewhat bizarre and is not a type of coding I had ever seen before. I say that it might not be possible, because I wonder if the parser itself actually makes duplicate messages and that by adding a log message we would end up with a lot of false positive log messages. I am doing a poor job of explaining this, a quick test will certainly determine whether it would work or not. |
As discovered by @peloy, the PLM Parser was silently dropping duplicate messages sequentially received in the same pass. This adds a debug3 message to the log when such messages are dropped. Partial fix for hollie#186
…eived at the Same Time PLM Decoder will not decode each message if multiple are received in one check data request. The only place that could create a hiccup, is if the PLM Parser has a bug. Since we now rely on the PLM Parser to first identify a valid message before asking the decoder to decode it, we rely on the PLM Parser to accurately discover messages. We still display the raw message, so the information is not lost, but we will not have a nice display of the message. I don't see this as a big deal, if the PLM Parser is missing messages we would likely have other problems anyways. Fixes the remainder of hollie#186
Message decoder only decodes the first message it finds So to decode all messages, we need to send it the parsed_data Closed hollie#186
Two issues:
The text was updated successfully, but these errors were encountered: