Issues/issue 787 app bacepics misses optional parameters for the device object (#789)
* Added some optional properties into the object property lists up to protocol-revision 22 * Added serial-number property to basic device object example.
This commit is contained in:
@@ -41,6 +41,8 @@ add_executable(${PROJECT_NAME}
|
||||
${SRC_DIR}/bacnet/bacint.c
|
||||
${SRC_DIR}/bacnet/bacreal.c
|
||||
${SRC_DIR}/bacnet/bacstr.c
|
||||
${SRC_DIR}/bacnet/bactext.c
|
||||
${SRC_DIR}/bacnet/indtext.c
|
||||
${SRC_DIR}/bacnet/basic/sys/bigend.c
|
||||
# Test and test library files
|
||||
./src/main.c
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
#include <zephyr/ztest.h>
|
||||
#include <bacnet/property.h>
|
||||
#include <bacnet/bactext.h>
|
||||
|
||||
/**
|
||||
* @addtogroup bacnet_tests
|
||||
@@ -49,7 +50,9 @@ static void testPropList(void)
|
||||
object_name++;
|
||||
}
|
||||
}
|
||||
zassert_equal(object_type, 1, NULL);
|
||||
zassert_equal(
|
||||
object_type, 1, "%s: duplicate object type property",
|
||||
bactext_object_type_name((BACNET_OBJECT_TYPE)i));
|
||||
zassert_equal(object_id, 1, NULL);
|
||||
zassert_equal(object_name, 1, NULL);
|
||||
/* test member function */
|
||||
|
||||
Reference in New Issue
Block a user