For the bacwp command (demo/writeprop), the maximum number of

tag/value pairs you can pass from the command line defaults 
to 64 (in main.c.) This setting may be changed to any other 
value by setting MAX_PROPERTY_VALUES in either Makefile or 
makefile.b32 in the demo/writeprop directory.
This commit is contained in:
kingdl802
2009-04-07 19:06:18 +00:00
parent c6085fe776
commit a4c5bc45c3
3 changed files with 14 additions and 3 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ TARGET = bacwp
#BACDL_DEFINE = -DBACDL_MSTP=1
BACDL_DEFINE = -DBACDL_BIP=1
BACNET_DEFINES = -DBACFILE=1 -DPRINT_ENABLED=1 -DBACAPP_ALL
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE)
# by default bacwp can handle 64 tag/value pairs
#WRITEPROPS_DEFINE = -DMAX_PROPERTY_VALUES=64
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE) $(WRITEPROPS_DEFINE)
# Directories
BACNET_PORT = linux
+4 -1
View File
@@ -51,6 +51,10 @@
#include "client.h"
#include "txbuf.h"
#ifndef MAX_PROPERTY_VALUES
#define MAX_PROPERTY_VALUES 64
#endif
/* buffer used for receive */
static uint8_t Rx_Buf[MAX_MPDU] = { 0 };
@@ -61,7 +65,6 @@ static BACNET_OBJECT_TYPE Target_Object_Type = OBJECT_ANALOG_INPUT;
static BACNET_PROPERTY_ID Target_Object_Property = PROP_ACKED_TRANSITIONS;
/* array index value or BACNET_ARRAY_ALL */
static int32_t Target_Object_Property_Index = BACNET_ARRAY_ALL;
#define MAX_PROPERTY_VALUES 64
static BACNET_APPLICATION_DATA_VALUE
Target_Object_Property_Value[MAX_PROPERTY_VALUES];
+5 -1
View File
@@ -35,7 +35,11 @@ INCLUDES = \
BACNET_DEFINES = -DPRINT_ENABLED=1 -DBACAPP_ALL
#BACDL_DEFINE=-DBACDL_MSTP=1
BACDL_DEFINE=-DBACDL_BIP=1 -DUSE_INADDR=1
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE)
# by default bacwp can handle 64 tag/value pairs
WRITEPROPS_DEFINE = -DMAX_PROPERTY_VALUES=64
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE) $(WRITEPROPS_DEFINE)
SRCS = main.c