Skip to content

Commit

Permalink
add keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored Nov 30, 2023
1 parent fa42daa commit 44228ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Returns a pointer to the payload.
##### `VitoWiFi<PROTOCOL_VERSION>(IFACE* interface)`
Constructor of the VitoWiFi class. `PROTOCOL_VERSION` can be `VS1` or `VS2`. If your Viessmann device is somewhat modern, you should use `VS2`.
Constructor of the VitoWiFi class. `PROTOCOL_VERSION` can be `GWG`, `VS1` or `VS2`. If your Viessmann device is somewhat modern, you should use `VS2`.
`interface` can be any of the `HardwareSerial` interfaces (`Serial`, `Serial1`...), `SoftwareSerial` or if you are on Linux, pass the c-string depicting your device (for example `"/dev/ttyUSB0"`).
##### `void onResponse(typename PROTOCOLVERSION::OnResponseCallback callback)`
Expand Down
15 changes: 13 additions & 2 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ encode KEYWORD2

#PacketVS2 public methods
createPacket KEYWORD2
#setLength KEYWORD2
length KEYWORD2
packetType KEYWORD2
functionCode KEYWORD2
Expand All @@ -42,8 +41,20 @@ checksum KEYWORD2
# Constants (LITERAL1)
#######################################

#Protocols
GWG LITERAL1
VS1 LITERAL1
VS2 LITERAL1

#Enums
TIMEOUT LITERAL1
LENGTH LITERAL1
NACK LITERAL1
CRC LITERAL1
ERROR LITERAL1

#Transformation
div2 LITERAL2
div10 LITERAL2
div3600 LITERAL2
noconv LITERAL2
raw LITERAL2

0 comments on commit 44228ef

Please sign in to comment.