Added object-name c-string getter function to basic objects so they can be referenced to free if dynamically created. (#754)
* Added basic object-name get for ASCII names to enable free if they were dynamically created. Added unit testing to validate the basic object ASCII object-name API. * Removed static scope on character array used for name since the array gets copied into characterstring array and static is not needed.
This commit is contained in:
@@ -52,6 +52,10 @@ static void test_BitString_Value_Object(void)
|
||||
OBJECT_BINARY_INPUT, instance, BitString_Value_Property_Lists,
|
||||
BitString_Value_Read_Property, BitString_Value_Write_Property,
|
||||
skip_fail_property_list);
|
||||
bacnet_object_name_ascii_test(
|
||||
instance,
|
||||
BitString_Value_Name_Set,
|
||||
BitString_Value_Name_ASCII);
|
||||
/* test specific WriteProperty values */
|
||||
BitString_Value_Write_Disable(instance);
|
||||
status = BitString_Value_Write_Enabled(instance);
|
||||
|
||||
Reference in New Issue
Block a user