Fixed basic Load Control object example WritableProperties list.
This commit is contained in:
@@ -133,6 +133,12 @@ static const int32_t Load_Control_Properties_Proprietary[] = { -1 };
|
|||||||
that is always writable. */
|
that is always writable. */
|
||||||
static const int32_t Writable_Properties[] = {
|
static const int32_t Writable_Properties[] = {
|
||||||
/* unordered list of always writable properties */
|
/* unordered list of always writable properties */
|
||||||
|
PROP_REQUESTED_SHED_LEVEL,
|
||||||
|
PROP_START_TIME,
|
||||||
|
PROP_SHED_DURATION,
|
||||||
|
PROP_DUTY_WINDOW,
|
||||||
|
PROP_SHED_LEVELS,
|
||||||
|
PROP_ENABLE,
|
||||||
-1
|
-1
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1606,10 +1612,17 @@ bool Load_Control_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
debug_printf(
|
if (property_lists_member(
|
||||||
"Load_Control_Write_Property() failure detected point Z\n");
|
Load_Control_Properties_Required,
|
||||||
wp_data->error_class = ERROR_CLASS_PROPERTY;
|
Load_Control_Properties_Optional,
|
||||||
wp_data->error_code = ERROR_CODE_WRITE_ACCESS_DENIED;
|
Load_Control_Properties_Proprietary,
|
||||||
|
wp_data->object_property)) {
|
||||||
|
wp_data->error_class = ERROR_CLASS_PROPERTY;
|
||||||
|
wp_data->error_code = ERROR_CODE_WRITE_ACCESS_DENIED;
|
||||||
|
} else {
|
||||||
|
wp_data->error_class = ERROR_CLASS_PROPERTY;
|
||||||
|
wp_data->error_code = ERROR_CODE_UNKNOWN_PROPERTY;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user