I don¡¯t think you¡¯re doing anything wrong.
The message filtering is an idea that dates back to the very beginning of JMRI. Back then, there was a concern that typical home computers would have trouble keeping up with LocoNet, so the filtering was built in to the design. Turns out it wasn¡¯t needed back then, so IIRC it was never implemented. Definitely don¡¯t need it now...
Bob
On Nov 29, 2024, at 11:11?PM, Gopal Patnaik via groups.io <gopalpatnaik@...> wrote:
I am trying to add a LocoNet listener in a script as follows: TC.addLocoNetListener(1, handle_response()). I want handle_response to fire for slot messages only, so I set the mask to 1. However, handle_response fires for every Loconet message. Of course, I could simply ignore all messages except for the slot messages in handle_response, but this seems wasteful. What am I doing wrong?
Gopal
¡ª
Bob Jacobsen
rgj1927@...