Skip to content

Commit

Permalink
feat(bacnet-asn1): expose property value type
Browse files Browse the repository at this point in the history
BREAKING CHANGE: property values changed from single value array (`[12]`) to array of object `[{value: 12, type: 3}]`
  • Loading branch information
fh1ch committed May 3, 2017
1 parent ae1d710 commit b6ca82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bacnet-asn1.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ var decode_read_access_result = module.exports.decode_read_access_result = funct
var localResult = bacapp_decode_application_data(buffer, offset + len, apduLen + offset - 1, value.objectIdentifier.type, new_entry.propertyIdentifier);
if (localResult.len < 0) return;
len += localResult.len;
localValues.push(localResult.value);
localValues.push({value: localResult.value, type: localResult.type});
}
if ((localValues.count === 2) && (localValues[0].Tag === baEnum.BacnetApplicationTags.BACNET_APPLICATION_TAG_DATE) && (localValues[1].Tag === baEnum.BacnetApplicationTags.BACNET_APPLICATION_TAG_TIME)) {
var date = localValues[0].value;
Expand Down

0 comments on commit b6ca82b

Please sign in to comment.