1
0
mirror of https://github.com/stargieg/bacnet-stack synced 2025-10-26 23:35:52 +08:00

add support for Reliability, Out_Of_Service, Change_Of_Value. TODO COV_Increment

This commit is contained in:
Patrick Grimm
2013-09-25 00:35:54 +02:00
parent 8f8814450f
commit d21f55b9ef
5 changed files with 121 additions and 27 deletions

View File

@@ -913,6 +913,12 @@ int Multistate_Value_Read_Property(
apdu_len = encode_application_boolean(&apdu[0], state);
break;
case PROP_RELIABILITY:
apdu_len = encode_application_enumerated(&apdu[0],
CurrentMSV->Reliability);
break;
case PROP_PRIORITY_ARRAY:
/* Array element zero is the number of elements in the array */
if (rpdata->array_index == 0) {
@@ -1274,6 +1280,16 @@ bool Multistate_Value_Write_Property(
}
break;
case PROP_RELIABILITY:
status =
WPValidateArgType(&value, BACNET_APPLICATION_TAG_ENUMERATED,
&wp_data->error_class, &wp_data->error_code);
if (status) {
CurrentMSV->Reliability = value.type.Enumerated;
fprintf(stderr,"PROP_RELIABILITY %i\n",value.type.Enumerated);
}
break;
case PROP_STATE_TEXT:
if (value.tag == BACNET_APPLICATION_TAG_CHARACTER_STRING) {
if (wp_data->array_index == 0) {