REAL8_TO_DT (FUN) ¶ FUNCTION REAL8_TO_DT : ERROR InOut: Scope Name Type Return REAL8_TO_DT ERROR Input r8Value REAL8 Output dtValue DT
REAL8_TO_LTIME (FUN) ¶ FUNCTION REAL8_TO_LTIME : ERROR InOut: Scope Name Type Return REAL8_TO_LTIME ERROR Input r8Value REAL8 Output ltValue LTIME
REAL8_TO_TIME (FUN) ¶ FUNCTION REAL8_TO_TIME : ERROR InOut: Scope Name Type Return REAL8_TO_TIME ERROR Input r8Value REAL8 Output tValue TIME
TIME_TO_INT64 (FUN) ¶ FUNCTION TIME_TO_INT64 : ERROR InOut: Scope Name Type Return TIME_TO_INT64 ERROR Input tValue TIME Output i64Value INT64
TIME_TO_ISO8601 (FUN) ¶ FUNCTION TIME_TO_ISO8601 : ERROR InOut: Scope Name Type Return TIME_TO_ISO8601 ERROR Input tValue TIME Inout sValue ISO8601
TIME_TO_REAL8 (FUN) ¶ FUNCTION TIME_TO_REAL8 : ERROR InOut: Scope Name Type Return TIME_TO_REAL8 ERROR Input tValue TIME Output r8Value REAL8
TEXT ¶ CreateTextFromString (Function) CreateTextFromWString (Function) TextCopyToString (Function) TextCopyToWString (Function) TextFree (Function)
BACnetReadFile (FUN) ¶ FUNCTION BACnetReadFile : IEC_BACNET_STATUS Sends an AtomicReadFile request. Sends a request to read the contents of the specified file beginning from the specified position. The file may be accessed as records or as a stream of octets that is defined by the contents of File_Access_Method property of the File object. Since the present version of this API does not support a default processing of this service, the user application has to include a Hook procedure to process it. This routine may control APDU properties like APDU length, segmentation, and timeout for both request and response. This routine can execute asynchronously, i.e. this routine will return to the caller before the BACnet reply comes so that the applications can keep running. In this case the response information will be received by the thread which is responsible for receiving asynchronous responses. An optional BACNET_READ_FILE_COMPLETE_CB routine, which is provided by the BACnet application, shall be used to process this information. If a number of asynchronous requests are sent, the responses shall be queued and identified by the transaction handles. If application does not supply the BACNET_READ_FILE_COMPLETE_CB routine; then the BACnetReadFile routine sends a request and waits for reply. Asynchron call, which fills pResult with the call result in an asynchronus manner. As soon as pResultStatus is IEC_BACNET_STATUS.BACNET_STATUS_OK the data in pResult is valid. InOut: Scope Name Type Comment Return BACnetReadFile IEC_BACNET_STATUS A status indicating if the operation worked. Input pSourceAddress POINTER TO IEC_BACNET_ADDRESS If the BACnet application has only one device constructed and installed, this can be 0. In this case the MAC address of this device will be used. Otherwise this shall be the MAC address returned on device object construction. pDestinationAddress POINTER TO IEC_BACNET_ADDRESS This is the MAC address of the device to which the request should be sent. pReadInfo POINTER TO IEC_BACNET_READ_FILE_INFO A pointer to hold the request information data structure. This data structure contains the objectID, File Access Type ( IEC_BACNET_FILE_ACCESS_TYPE.FILE_ACCESS_STREAM or IEC_BACNET_FILE_ACCESS_TYPE.FILE_ACCESS_RECORD ) and Read File Range information. pAPDUParams POINTER TO IEC_BACNET_APDU_PROPERTIES A pointer to the APDU-Properties structure which sets APDU properties for this transaction only. This does not change global defaults or settings for the application APDU Properties. This argument may be 0. In this case APDU properties are used which were specified in the device object properties of the applications device which sends the request. pResult POINTER TO IEC_BACNET_READ_FILE_RESULT A pointer to a buffer to hold the response data if successful reading (datatype IEC_BACNET_READ_FILE_RESULT ). This pointer may be 0 if the asynchron call is used. In this case the memory for the response is allocated by the API and the application is responsible to release it with a call to BACnetFreeStackAllocatedMemory if the buffer is no longer needed. pTransactionToken POINTER TO BACnetAsyncTransactionToken Transaction token of the asynchronous call - see BACnetAsyncTransactionToken . pError POINTER TO IEC_BACNET_ERROR A pointer to a structure to hold BACnet Error information. pError may be 0 if the application isn’t interested in detailed error information.
BACnetReadProperty (FUN) ¶ FUNCTION BACnetReadProperty : IEC_BACNET_STATUS Sends a ReadProperty request Sends a request to read the value of a property of an object. This routine may send asynchronous messages, i.e. this routine will complete its execution before the BACnet reply comes so the applications can keep running. The response information will be received by an internal thread which is responsible for receiving asynchronous responses. An optional BACNET_READ_PROP_COMPLETE_CB routine, which is provided by the BACnet application, may be used to process this information. If a number of asynchronous requests are sent, the responses may be queued and identified by the application provided handles. If this routine does not use the BACNET_READ_PROP_COMPLETE_CB routine, then the BACnetReadProperty routine sends a request and waits for the reply. This routine may control APDU Properties like APDU length and segmentation and timeout, both during its execution and in response processing. Asynchron call, which fills pContents with the call result in an asynchronus manner. As soon as pContentsStatus is IEC_BACNET_STATUS.BACNET_STATUS_OK the data in pContents is valid. InOut: Scope Name Type Comment Return BACnetReadProperty IEC_BACNET_STATUS A status indicating if the operation worked. Input pSourceAddress POINTER TO IEC_BACNET_ADDRESS If the BACnet application has only one device constructed and installed, this can be 0. In this case the MAC address of this device will be used. Otherwise this shall be the MAC address returned on device object construction. pDestinationAddress POINTER TO IEC_BACNET_ADDRESS This is the MAC address of the device to which the request should be sent. pReadInfo POINTER TO IEC_BACNET_READ_INFO A pointer to the service information data structure. This data structure identifies the property within the device and includes the object ID, property ID, and array index. pAPDUParams POINTER TO IEC_BACNET_APDU_PROPERTIES A pointer to the APDU-Properties structure which sets APDU properties for this transaction only. This does not change global defaults or settings for the application APDU Properties. This argument may be 0. In this case APDU properties are used which were specified in the device object properties of the applications device which sends the request. pContents POINTER TO IEC_BACNET_PROPERTY_CONTENTS Pointer to a property contents buffer structure. This data structure must contain a pointer to a buffer into which the value is copied. Upon successful completion, the contents IEC_BACNET_DATA_TYPE tag attribute indicates the datatype of the property. The buffer pointer in the property contents structure may be 0 along with the size. In this case the API will fill the buffer and the application is responsible to release it with a call to BACnetFreeStackAllocatedMemory if the buffer is no longer needed. pTransactionToken POINTER TO BACnetAsyncTransactionToken Transaction token of the asynchronous call - see BACnetAsyncTransactionToken . pError POINTER TO IEC_BACNET_ERROR A pointer to a structure to hold BACnet Error information. pError may be 0 if the application isn’t interested in detailed error information.
BACnetReadPropertyMultiple (FUN) ¶ FUNCTION BACnetReadPropertyMultiple : IEC_BACNET_STATUS Sends an ReadPropertyMultiple request. Sends a request to read the values of one or more specified properties of one or more objects. This routine may read a single property of a single object, a list of properties of a single object, or any number of properties of any number of objects within one device. This routine may control APDU properties like APDU length, segmentation, and timeout for both request and response. This routine can execute asynchronously, i.e. this routine will return to the caller before the BACnet reply comes so that the applications can keep running. In this case the response information will be received by the thread which is responsible for receiving asynchronous responses. An optional BACNET_READ_PROP_MUL_COMPLETE_CB routine, which is provided by the application, shall be used to process this information. If a number of asynchronous requests are sent, the responses shall be queued and identified by the transaction handles. If the application does not supply the BACNET_READ_PROP_MUL_COMPLETE_CB routine then the BACnetReadPropertyMultiple routine sends a request and waits for the reply. Asynchron call, which fills readAccessResult with the call result in an asynchronus manner. As soon as pContentsStatus is IEC_BACNET_STATUS.BACNET_STATUS_OK the data in pContents is valid. InOut: Scope Name Type Comment Return BACnetReadPropertyMultiple IEC_BACNET_STATUS A status indicating if the operation worked. Input pSourceAddress POINTER TO IEC_BACNET_ADDRESS If the BACnet application has only one device constructed and installed, this can be 0. In this case the MAC address of this device will be used. Otherwise this shall be the MAC address returned on device object construction. pDestinationAddress POINTER TO IEC_BACNET_ADDRESS This is the MAC address of the device to which the request should be sent. pRpmInfo POINTER TO IEC_BACNET_READ_MUL_INFO A pointer to the service information data structure. pAPDUParams POINTER TO IEC_BACNET_APDU_PROPERTIES A pointer to the APDU-Properties structure which sets APDU properties for this transaction only. This does not change global defaults or settings for the application APDU Properties. This argument may be 0. In this case APDU properties are used which were specified in the device object properties of the applications device which sends the request. pReadAccessResult POINTER TO IEC_BACNET_READ_RAW_RESULT_LIST A pointer to the memory block to place a list of one or more IEC_BACNET_READ_RAW_RESULT_LIST data structures which indicate success or failure of the reading of each specified Property. In the case of successful access to a single Property, its value shall be returned within this argument, and in the case of access failure this argument shall convey the Property Access Error information. The application may initialize the readRes member of the IEC_BACNET_READ_RAW_RESULT_LIST structure with a 0 pointer and setting the nListCount to 0 too. In this case the memory for the response is allocated by the API and the application is responsible to release it with a call to BACnetFreeStackAllocatedMemory if the buffer is no longer needed. pTransactionToken POINTER TO BACnetAsyncTransactionToken Transaction token of the asynchronous call - see BACnetAsyncTransactionToken . pError POINTER TO IEC_BACNET_ERROR A pointer to a structure to hold BACnet Error information. pError may be 0 if the application isn’t interested in detailed error information.