| 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).
| [in] | pnHandle | Profinet API Handle. |
| [in] | errorLevel | Level of the error. |