BACnetSetHook (FUN)ΒΆ

FUNCTION BACnetSetHook : IEC_BACNET_STATUS

Sets / registers a service hook

Registers a hook routine, which is the service application hook. The service application hook may override the default API processing of some BACnet service requests. A hook can be registered at any time. One hook procedure is registered per service. If the same service is hooked more than once (the hook is registered more than once for the same service), the new hook procedure replaces old one. A NULL procedure pointer cancels the hook.

InOut:

Scope

Name

Type

Comment

Return

BACnetSetHook

IEC_BACNET_STATUS

A status indicating whether the operation worked.

Input

eHookType

IEC_BACNET_CB_TYPE

The hook type which shold be registered.

pICallback

CmpEventMgr.ICmpEventCallback

A pointer to the hook event interface. Hook routines are provided by the application.