Skip to content

Commit

Permalink
fix(bacnet): fixed BACnetReadAccessProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Apr 22, 2022
1 parent a761949 commit 97c28ee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class ManualBacNetDecoder {

public static void main(String[] args) throws Exception {
final byte[] bytes = Hex.decodeHex("810a002b01040205790109011c020000142c000002f93a06b24e09552e44434a00002f096f2e8204002f4f");
final byte[] bytes = Hex.decodeHex("810a001b010030030e0c020000011e294c39014ec4020000014f1f");
ReadBuffer readBuffer = new ReadBufferByteBased(bytes);
final BVLC packet = BVLC.staticParse(readBuffer);
System.out.println(packet);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
[simple uint 8 originalInvokeId ]
[optional uint 8 sequenceNumber 'segmentedMessage' ]
[optional uint 8 proposedWindowSize 'segmentedMessage' ]
[optional BACnetServiceAck('apduLength - (2 + (segmentedMessage ? 2 : 0))')
[optional BACnetServiceAck('apduLength - (3 + (segmentedMessage ? 2 : 0))')
serviceAck '!segmentedMessage' ]
// TODO: maybe we should put this in the discriminated types below
[optional uint 8 segmentServiceChoice 'segmentedMessage && sequenceNumber != 0']
Expand Down Expand Up @@ -639,9 +639,9 @@
]

[type BACnetReadAccessProperty(BACnetObjectType objectType)
[simple BACnetContextTagPropertyIdentifier('0', 'BACnetDataType.BACNET_PROPERTY_IDENTIFIER')
[simple BACnetContextTagPropertyIdentifier('2', 'BACnetDataType.BACNET_PROPERTY_IDENTIFIER')
propertyIdentifier ]
[optional BACnetContextTagUnsignedInteger('1', 'BACnetDataType.UNSIGNED_INTEGER')
[optional BACnetContextTagUnsignedInteger('3', 'BACnetDataType.UNSIGNED_INTEGER')
arrayIndex ]
[optional BACnetConstructedData('4', 'objectType', 'propertyIdentifier')
propertyValue ]
Expand Down Expand Up @@ -1576,7 +1576,7 @@
data
terminated
'STATIC_CALL("isBACnetConstructedDataClosingTag", readBuffer, false, tagNumber)' ]
[virtual bit hasData 'COUNT(data) == 0']
[virtual bit hasData 'COUNT(data) != 0']
[optional BACnetContextTagPropertyIdentifier('0', 'BACnetDataType.BACNET_PROPERTY_IDENTIFIER')
propertyIdentifier
'hasData' ]
Expand Down

0 comments on commit 97c28ee

Please sign in to comment.