diff --git a/README.md b/README.md index 4dc1a37..8c7076b 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ Returns a pointer to the payload. ##### `VitoWiFi(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)` diff --git a/keywords.txt b/keywords.txt index 2a4c156..852f3d0 100644 --- a/keywords.txt +++ b/keywords.txt @@ -27,7 +27,6 @@ encode KEYWORD2 #PacketVS2 public methods createPacket KEYWORD2 -#setLength KEYWORD2 length KEYWORD2 packetType KEYWORD2 functionCode KEYWORD2 @@ -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