|TCPmaker : Visual Tour Exploring and Customizing the Generated Code|
The mtDisconnect event:
The mtDisconnect() handler is called whenever your device realizes that the PC browser has disconnected from your device.
You might use this to perform some sort of cleanup operations: maybe shut down some part of your hardware or maybe set some flags so your code won't try to send any data if it is not connected.
In our simple PICDEM.net2 project, we don't need to add any code to this mtDisconnect() handler.
|1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21|