Reverted the WriteProperty value changes. I am not really happy with the solution and it would require a bunch of fixes to the demos.

This commit is contained in:
skarg
2006-08-29 20:43:46 +00:00
parent 42e0033c98
commit 6e67d7388d
5 changed files with 34 additions and 30 deletions
+21
View File
@@ -1038,6 +1038,27 @@ int encode_tagged_octet_string(uint8_t * apdu,
return apdu_len;
}
/* from clause 20.2.8 Encoding of an Octet String Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int encode_context_octet_string(uint8_t * apdu,
int tag_number,
BACNET_OCTET_STRING * octet_string)
{
int apdu_len = 0;
if (apdu && octet_string) {
apdu_len = encode_tag(&apdu[0], (uint8_t) tag_number,
true, octetstring_length(octet_string));
if ((apdu_len + octetstring_length(octet_string)) < MAX_APDU)
apdu_len += encode_octet_string(&apdu[apdu_len], octet_string);
else
apdu_len = 0;
}
return apdu_len;
}
/* from clause 20.2.8 Encoding of an Octet String Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */