Function to notify the user application of critical errors in the network core. More...
Functions | |
| void | netHandleError (netErrorCode error) |
| Handle Network Component critical error. [user-provided]. | |
Function to notify the user application of critical errors in the network core.
After a critical error, normal operation of the network component is not possible. The function netHandleError reports a critical error. The network component provides a weak implementation of this function, but you can supply your own implementation to replace the default one from the library.
|
extern |
Handle Network Component critical error. [user-provided].
| [in] | error | system error code. |
The netHandleError callback function serves as a critical error handler. It is invoked when the system encounters an unrecoverable error. In such cases, the typical response is to restart the network component.
The argument error specifies the type of error that caused the function to be called.
Code Example