From 44228efac563f725baa53a7531dd48297d2d0863 Mon Sep 17 00:00:00 2001 From: Bert Melis Date: Thu, 30 Nov 2023 11:19:58 +0100 Subject: [PATCH] add keywords --- README.md | 2 +- keywords.txt | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) 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