Callback functions are the functions used to handle the various TWENET events as they occur (flow diagram), all of which need to be implemented when building an application with the TWENET library. The most important function is cbAppColdStart(), which is the equivalent of the general main() function.
User defined event handling functions – 状Describes task processing with state transitions
Both callback functions need to return control after they have been called, and writing very long processes will affect the overall behaviour. Particular care should be taken when writing interrupt handlers.