This commit is contained in:
@@ -130,6 +130,9 @@ bool Device_Set_Object_Name(const char *name, size_t length)
|
|||||||
{
|
{
|
||||||
bool status = false; /*return value */
|
bool status = false; /*return value */
|
||||||
|
|
||||||
|
/* FIXME: All the object names in a device must be unique.
|
||||||
|
Disallow setting the Device Object Name to any objects in
|
||||||
|
the device. */
|
||||||
if (length < sizeof(Object_Name)) {
|
if (length < sizeof(Object_Name)) {
|
||||||
memmove(Object_Name, name, length);
|
memmove(Object_Name, name, length);
|
||||||
Object_Name[length] = 0;
|
Object_Name[length] = 0;
|
||||||
|
|||||||
@@ -538,8 +538,10 @@ bool Device_Write_Property(BACNET_WRITE_PROPERTY_DATA * wp_data,
|
|||||||
if (len <= 20) {
|
if (len <= 20) {
|
||||||
/* FIXME: set the name */
|
/* FIXME: set the name */
|
||||||
/* Display_Set_Name(
|
/* Display_Set_Name(
|
||||||
characterstring_value(&value.type.Character_String)); */
|
characterstring_value(&value.type.Character_String)); */
|
||||||
|
/* FIXME: All the object names in a device must be unique.
|
||||||
|
Disallow setting the Device Object Name to any objects in
|
||||||
|
the device. */
|
||||||
} else {
|
} else {
|
||||||
*error_class = ERROR_CLASS_PROPERTY;
|
*error_class = ERROR_CLASS_PROPERTY;
|
||||||
*error_code = ERROR_CODE_NO_SPACE_TO_WRITE_PROPERTY;
|
*error_code = ERROR_CODE_NO_SPACE_TO_WRITE_PROPERTY;
|
||||||
|
|||||||
Reference in New Issue
Block a user