1. In device.c, the Object_Table[] is now extern; it has to be defined by the user application (see demos); only the required BACnet objects have to be included.
2. Objects' .h files define macro to be used to initialize Object_Table[].
This commit is contained in:
@@ -69,4 +69,12 @@ extern "C" {
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define BINARY_VALUE_OBJ_FUNCTIONS \
|
||||
OBJECT_BINARY_VALUE, Binary_Value_Init, Binary_Value_Count, \
|
||||
Binary_Value_Index_To_Instance, Binary_Value_Valid_Instance, \
|
||||
Binary_Value_Name, Binary_Value_Read_Property, \
|
||||
Binary_Value_Write_Property, Binary_Value_Property_Lists, NULL, \
|
||||
NULL
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user