Skip to content

Commit

Permalink
fix(cbus): fix reset and write command
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Jul 21, 2022
1 parent cfffc80 commit de934ec
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 5 deletions.
30 changes: 28 additions & 2 deletions plc4go/protocols/cbus/readwrite/model/CALDataWrite.go

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

130 changes: 128 additions & 2 deletions plc4go/protocols/cbus/readwrite/model/RequestReset.go

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 @@ -78,6 +78,10 @@
[optional byte secondPipe 'pipePeek == RequestType.SMART_CONNECT_SHORTCUT']
]
['RESET' *Reset
[peek RequestType tildePeek ]
[optional byte secondTilde 'tildePeek == RequestType.RESET' ]
[peek RequestType tildePeek2 ]
[optional byte thirdTilde 'tildePeek2 == RequestType.RESET' ]
]
['DIRECT_COMMAND' *DirectCommandAccess(uint 16 payloadLength)
[const byte at 0x40 ]
Expand Down Expand Up @@ -583,7 +587,9 @@
]
['WRITE' *Write(CALCommandTypeContainer commandTypeContainer) // Request
[simple Parameter paramNo ]
[array byte data count 'commandTypeContainer.numBytes-1' ]
[simple byte code ]
// TODO: we can decode this with the parametert above... e.g. INTERFACE_OPTIONS_1 is defined below
[array byte data count 'commandTypeContainer.numBytes - 2' ]
]
['REPLY', 'true' *IdentifyReply(CALCommandTypeContainer commandTypeContainer) // Reply
[simple Attribute attribute ]
Expand Down

0 comments on commit de934ec

Please sign in to comment.