Skip to content
Version 6.1.0
Contact Us

BACnetStack_RegisterHookSCCertificateProcedure

void BACnetStack_RegisterHookSCCertificateProcedure(
void (*FPHookSCCertificateProcedure)(const uint32_t procedureId, const uint8_t procedure, const uint8_t step, const uint8_t status, const uint32_t errorClass, const uint32_t errorCode));

Registers the hook that reports the progress of a BACnet/SC certificate procedure.

Registers the progress hook: called once per completed step with status InProgress (a step that takes several requests, such as reading both issuer files or a file in several blocks, reports once when it is done), then once with Succeeded for the final ReinitializeDevice step, or once with Failed for the step that failed (errorClass / errorCode are a BACnet Error-PDU’s, or errorClass is a BACnetSCCertificateProcedureFailure value). When a write step fails after a write has taken effect on the target, or may have (a timeout or an Abort), the Failed report comes once the target has answered the DISCARD_CHANGES write the stack sends first. See the BACnetSCCertificateProcedure* enumerations above.

See also: CASBACnetStack::FPHookSCCertificateProcedure

Parameter Direction Description
FPHookSCCertificateProcedure in The hook function pointer to register, or NULL to clear.

FPHookSCCertificateProcedure

Topic: BACnet/SC. Declared in CASBACnetStackDLL.h.