TCPmaker : Visual Tour    Exploring and Customizing the Generated Code  

The mtEndOfMessage event:

The mtEndOfMessage() event handler called when a message is received & AFTER it is decoded.

Variables that may change at modest rates could be sent to the PC from here. (As long as the browser is connected, we should be receiving a message every 80 milliseconds or so: about 12x per second.)

This would also be a good place to do some of your processing work: do a little bit of work during each call to mtEndOfMessage(), using a State Machine.

TCPmaker has helped you by adding commented out code examples, and suggestions in comments, of things you might add to this event handler. We will examine some of these in the next few pages of this tutorial.




 

 

 
  

17 of 21
Copyright Notice and Author Information