From 0d4eeafdc970d4bbf6e5d8afce3acdec6f1fd4ed Mon Sep 17 00:00:00 2001 From: Robert van den Breemen Date: Wed, 10 Feb 2021 01:47:02 +0100 Subject: [PATCH] error counting --- OTGW-Core.h | 6 ++++++ OTGW-Core.ino | 4 ++++ version.h | 10 +++++----- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/OTGW-Core.h b/OTGW-Core.h index 4d25f0e..6dcc76c 100644 --- a/OTGW-Core.h +++ b/OTGW-Core.h @@ -126,6 +126,12 @@ typedef struct { uint16_t RemehaServicemessage = 0; // u16 Remeha Servicemessage uint16_t RemehaDetectionConnectedSCU =0; // u16 Remeha detection connected SCU’s + //errors + uint16_t error01 = 0; + uint16_t error02 = 0; + uint16_t error03 = 0; + uint16_t error04 = 0; + } OTdataStruct; static OTdataStruct OTdataObject; diff --git a/OTGW-Core.ino b/OTGW-Core.ino index 3a9e4e3..0b2e343 100644 --- a/OTGW-Core.ino +++ b/OTGW-Core.ino @@ -788,6 +788,10 @@ int sendOTGW(const char* buf, int len) void processOTGW(const char * buf, int len) { + if (strstr(buf, "Error 01")!= NULL) OTdataObject.error01++; + if (strstr(buf, "Error 02")!= NULL) OTdataObject.error02++; + if (strstr(buf, "Error 03")!= NULL) OTdataObject.error03++; + if (strstr(buf, "Error 04")!= NULL) OTdataObject.error04++; if (len == 9) { //OT protocol messages are 9 chars long diff --git a/version.h b/version.h index 8451a7a..c373c2e 100644 --- a/version.h +++ b/version.h @@ -2,13 +2,13 @@ #define _VERSION_MAJOR 0 #define _VERSION_MINOR 7 #define _VERSION_PATCH 5 -#define _VERSION_BUILD 583 +#define _VERSION_BUILD 585 //#define _VERSION_PRERELEASE beta //uncomment to define prerelease labels: alpha - beta - rc #define _VERSION_DATE "10-02-2021" -#define _VERSION_TIME "01:21:08" +#define _VERSION_TIME "01:46:32" #define _SEMVER_CORE "0.7.5" -#define _SEMVER_BUILD "0.7.5+583" -#define _SEMVER_FULL "0.7.5+583" +#define _SEMVER_BUILD "0.7.5+585" +#define _SEMVER_FULL "0.7.5+585" #define _SEMVER_NOBUILD "0.7.5 (10-02-2021)" -#define _VERSION "0.7.5+583 (10-02-2021)" +#define _VERSION "0.7.5+585 (10-02-2021)" //The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver