Syntax:
on {port} {block}
Keyword handler:
net.eclecity.linguist.comms.keyword.CommsKOn.class
Runtime handler(s):
net.eclecity.linguist.comms.handler.CommsHOn.class
Function:
This allows you to specify a handler to take control when a newline-terminated message is received from a port. The cause of the callback is available to the code that immediately follows the on instruction, by using the name of the port as a String value.
Example(s):
on COM2 begin put COM2 into Buffer end