PROFINET Device4.2.0
 
Loading...
Searching...
No Matches

◆ PN_APP_IOD_cbErrorLog()

void PN_APP_IOD_cbErrorLog ( PN_API_IOD_Handle_t *const  pnHandle,
const uint32_t  errorLevel 
)

Callback function to log an error.

Based on the error level, this function decides whether to just print the error (which is the case for error level between PN_API_IOD_LOG_CHAT and PN_API_IOD_LOG_ERROR) or to also shut down Profinet device (which happens when receiving PN_API_IOD_LOG_ERROR_FATAL from Profinet stack).

Parameters
[in]pnHandleProfinet API Handle.
[in]errorLevelLevel of the error.
See also
PN_API_IOD_errorLogCbf