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

◆ PN_APP_IOD_cbArDisconn()

void PN_APP_IOD_cbArDisconn ( PN_API_IOD_Handle_t *const  pnHandle,
const uint16_t  arNum,
const uint16_t  arSessionKey,
const PN_API_IOD_ArReason_t  reasonCode 
)

Callback function to notify that an AR connection with the IO controller has been terminated.

Based on the AR type, this function removes the deactivated AR from the application's database and if it was the last running AR, it deactivates the exchange of cyclic IO data.

Parameters
[in]pnHandleProfinet API Handle.
[in]arNumAR number.
[in]arSessionKeySession key.
[in]reasonCodeReason code (see PN_API_IOD_ArReason_t)
See also
PN_API_IOD_arDisconnCbf