|TCPmaker : Visual Tour Exploring and Customizing the Generated Code|
So, receiving a Variable and doing something with its new value can be pretty simple. What about sending the variable in the other direction?
Well, before we can talk about how to send a Variable from the device IN toward the PC, we have to talk about where we can place the code to do that, which brings us to other event handlers in mtGen.c.
In addition to the Receive Events, TCPmaker's code framework also includes special events called mtServer Events. Unlike Receive Events, mtServer Events are not associated with specific variables, but instead have to do with the connection or disconnection of your device itself, and the time of arrival and processing of individual messages from the PC browser.
File mtGen.c contains an event handler routine for each type of mtServer event.
The next few pages describe the various types of mtServer Events.
|1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21|