EVT_BACNET_IHAVE (STRUCT)¶
TYPE EVT_BACNET_IHAVE : STRUCT
Receives I-Have requests.
This is the type declaration for the I-Have service application hook. This hook allows an BACnet application to override the default processing of an I-Have service request. This hook is given all of the parameters of a service request, and is responsible for all error checking (addresses and service information correctness and any other service parameter given). A pointer to the routine is registered by BACnetcSetHook() API routine. A hook can be registered at any time. One hook procedure is registered per service. If a hook is registered more than once for the same service, the new hook procedure replaces old one. A NULL procedure pointer can be used to unregister the hook.
- InOut:
- Name - Type - Comment - pCBStatus- POINTER TO IEC_BACNET_CB_STATUS - CB-Status returned for the event. “Default” processes the standard APIs reaction, which needs no additional Callback-Signalling - phTransaction- POINTER TO BYTE - This is the Transaction State Machine (TSM) handle for the current service request. It is generated by the BACnet API and is the first parameter given to the Hook- Completion functions. - sourceAddress- POINTER TO IEC_BACNET_ADDRESS - This is the MAC address of the BACnet addressed device from which the request has been sent. - destinationAddress- POINTER TO IEC_BACNET_ADDRESS - This is the MAC address of the device constructed by the application which has received the request. - pServiceInfo- POINTER TO IEC_BACNET_I_HAVE_INFO - A pointer to the service information data structure which contains information about the source device and object the Device Instance Number, object Identifier sand object Name. 
