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:
Steve Karg
2024-09-27 16:22:58 -05:00
committed by GitHub
parent 3eee88dd31
commit 7b18add6d3
5 changed files with 479 additions and 110 deletions
+2
View File
@@ -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
+4 -1
View File
@@ -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 */