Updated BACnet protocol revision constants.
This commit is contained in:
@@ -536,13 +536,13 @@ uint16_t Device_Vendor_Identifier(
|
|||||||
uint8_t Device_Protocol_Version(
|
uint8_t Device_Protocol_Version(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
return 1;
|
return BACNET_PROTOCOL_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t Device_Protocol_Revision(
|
uint8_t Device_Protocol_Revision(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
return 5;
|
return BACNET_PROTOCOL_REVISION;
|
||||||
}
|
}
|
||||||
|
|
||||||
BACNET_SEGMENTATION Device_Segmentation_Supported(
|
BACNET_SEGMENTATION Device_Segmentation_Supported(
|
||||||
|
|||||||
@@ -224,10 +224,12 @@ int Device_Encode_Property_APDU(
|
|||||||
encode_application_character_string(&apdu[0], &char_string);
|
encode_application_character_string(&apdu[0], &char_string);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_VERSION:
|
case PROP_PROTOCOL_VERSION:
|
||||||
apdu_len = encode_application_unsigned(&apdu[0], 1);
|
apdu_len = encode_application_unsigned(&apdu[0],
|
||||||
|
BACNET_PROTOCOL_VERSION);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_REVISION:
|
case PROP_PROTOCOL_REVISION:
|
||||||
apdu_len = encode_application_unsigned(&apdu[0], 5);
|
apdu_len = encode_application_unsigned(&apdu[0],
|
||||||
|
BACNET_PROTOCOL_REVISION);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_SERVICES_SUPPORTED:
|
case PROP_PROTOCOL_SERVICES_SUPPORTED:
|
||||||
/* Note: list of services that are executed, not initiated. */
|
/* Note: list of services that are executed, not initiated. */
|
||||||
|
|||||||
@@ -230,10 +230,12 @@ int Device_Encode_Property_APDU(
|
|||||||
encode_application_character_string(&apdu[0], &char_string);
|
encode_application_character_string(&apdu[0], &char_string);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_VERSION:
|
case PROP_PROTOCOL_VERSION:
|
||||||
apdu_len = encode_application_unsigned(&apdu[0], 1);
|
apdu_len = encode_application_unsigned(&apdu[0],
|
||||||
|
BACNET_PROTOCOL_VERSION);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_REVISION:
|
case PROP_PROTOCOL_REVISION:
|
||||||
apdu_len = encode_application_unsigned(&apdu[0], 5);
|
apdu_len = encode_application_unsigned(&apdu[0],
|
||||||
|
BACNET_PROTOCOL_REVISION);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_SERVICES_SUPPORTED:
|
case PROP_PROTOCOL_SERVICES_SUPPORTED:
|
||||||
/* Note: list of services that are executed, not initiated. */
|
/* Note: list of services that are executed, not initiated. */
|
||||||
|
|||||||
@@ -642,10 +642,12 @@ int Device_Read_Property_Local(
|
|||||||
encode_application_character_string(&apdu[0], &char_string);
|
encode_application_character_string(&apdu[0], &char_string);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_VERSION:
|
case PROP_PROTOCOL_VERSION:
|
||||||
apdu_len = encode_application_unsigned(&apdu[0], 1);
|
apdu_len = encode_application_unsigned(&apdu[0],
|
||||||
|
BACNET_PROTOCOL_VERSION);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_REVISION:
|
case PROP_PROTOCOL_REVISION:
|
||||||
apdu_len = encode_application_unsigned(&apdu[0], 5);
|
apdu_len = encode_application_unsigned(&apdu[0],
|
||||||
|
BACNET_PROTOCOL_REVISION);
|
||||||
break;
|
break;
|
||||||
case PROP_PROTOCOL_SERVICES_SUPPORTED:
|
case PROP_PROTOCOL_SERVICES_SUPPORTED:
|
||||||
/* Note: list of services that are executed, not initiated. */
|
/* Note: list of services that are executed, not initiated. */
|
||||||
|
|||||||
Reference in New Issue
Block a user