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

send received OT message to MQTT to topic message

This commit is contained in:
Robert van den Breemen 2021-01-03 23:18:46 +01:00
parent aafa7c795e
commit 5aca4e08b5
2 changed files with 8 additions and 7 deletions

View File

@ -589,6 +589,7 @@ void processOTGW(const char * buf, int len)
if (len >= 9)
{
//OT protocol messages are 9 chars long
sendMQTTData("message", buf);
//parse value
const char *bufval = buf + 1;
uint32_t value = strtoul(bufval, NULL, 16);

View File

@ -2,13 +2,13 @@
#define _VERSION_MAJOR 0
#define _VERSION_MINOR 5
#define _VERSION_PATCH 1
#define _VERSION_BUILD 367
#define _VERSION_BUILD 368
//#define _VERSION_PRERELEASE beta //uncomment to define prerelease labels: alpha - beta - rc
#define _VERSION_DATE "03-01-2021"
#define _VERSION_TIME "23:06:47"
#define _SEMVER_CORE "0.5.0"
#define _SEMVER_BUILD "0.5.0+367"
#define _SEMVER_FULL "0.5.0+367"
#define _SEMVER_NOBUILD "0.5.0 (03-01-2021)"
#define _VERSION "0.5.0+367 (03-01-2021)"
#define _VERSION_TIME "23:18:05"
#define _SEMVER_CORE "0.5.1"
#define _SEMVER_BUILD "0.5.1+368"
#define _SEMVER_FULL "0.5.1+368"
#define _SEMVER_NOBUILD "0.5.1 (03-01-2021)"
#define _VERSION "0.5.1+368 (03-01-2021)"
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver