Adding non-SNAPI commands to a module
mstocum
Posts: 120
I'm trying to add some non-standard commands to a module I'm working on. Right now I'm just overriding handleCommandEvent() like so:
and it works, but if I have debug output enabled on the module, I get the following output on the console when I send the command to the module:
I feel like there's something I'm supposed to do to let the SNAPIRouter know that I'm handling the command.
public void handleCommandEvent(Event evt, String cmd) { if (evt == null) return; if(cmd.equals("DOIT")) { doit(); } }
and it works, but if I have debug output enabled on the module, I get the following output on the console when I send the command to the module:
Line 3 (12:05:43.007):: ModuleComponent:OnHandleDataEvent(41001:1:1,DOIT) Line 4 (12:05:43.007):: LebowJoinscheduler: SNAPIRouter: Routing the Data Event Line 8 (12:05:43.007):: LebowJoinscheduler: unhandled - DataEvent: 9 Line 9 (12:05:43.007):: LebowJoinscheduler: unhandled - DataEvent: 64 Line 10 (12:05:43.007):: LebowJoinscheduler: SNAPIRouter: UNKNOWN-DOIT
I feel like there's something I'm supposed to do to let the SNAPIRouter know that I'm handling the command.
0
Comments