1
mirror of https://github.com/rvdbreemen/OTGW-firmware synced 2024-11-16 04:33:49 +01:00

error counting

This commit is contained in:
Robert van den Breemen 2021-02-10 01:47:02 +01:00
parent 2b8c3546b6
commit 0d4eeafdc9
3 changed files with 15 additions and 5 deletions

View File

@ -126,6 +126,12 @@ typedef struct {
uint16_t RemehaServicemessage = 0; // u16 Remeha Servicemessage uint16_t RemehaServicemessage = 0; // u16 Remeha Servicemessage
uint16_t RemehaDetectionConnectedSCU =0; // u16 Remeha detection connected SCUs uint16_t RemehaDetectionConnectedSCU =0; // u16 Remeha detection connected SCUs
//errors
uint16_t error01 = 0;
uint16_t error02 = 0;
uint16_t error03 = 0;
uint16_t error04 = 0;
} OTdataStruct; } OTdataStruct;
static OTdataStruct OTdataObject; static OTdataStruct OTdataObject;

View File

@ -788,6 +788,10 @@ int sendOTGW(const char* buf, int len)
void processOTGW(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) if (len == 9)
{ {
//OT protocol messages are 9 chars long //OT protocol messages are 9 chars long

View File

@ -2,13 +2,13 @@
#define _VERSION_MAJOR 0 #define _VERSION_MAJOR 0
#define _VERSION_MINOR 7 #define _VERSION_MINOR 7
#define _VERSION_PATCH 5 #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_PRERELEASE beta //uncomment to define prerelease labels: alpha - beta - rc
#define _VERSION_DATE "10-02-2021" #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_CORE "0.7.5"
#define _SEMVER_BUILD "0.7.5+583" #define _SEMVER_BUILD "0.7.5+585"
#define _SEMVER_FULL "0.7.5+583" #define _SEMVER_FULL "0.7.5+585"
#define _SEMVER_NOBUILD "0.7.5 (10-02-2021)" #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 //The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver