From 1158161a8d68a612d9f8c95d8e3b6be1d12edbba Mon Sep 17 00:00:00 2001 From: 1technophile Date: Fri, 24 Nov 2017 23:24:54 +0100 Subject: [PATCH] put per default the new code with mi flora integration #100 --- ZgatewayBT.ino | 4 ++-- config_BT.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ZgatewayBT.ino b/ZgatewayBT.ino index b224c73..522dcfc 100644 --- a/ZgatewayBT.ino +++ b/ZgatewayBT.ino @@ -52,7 +52,7 @@ void setupBT() { delay(100); } -#ifndef ZgatewayBT_stable // published for test only, if you want to test mi flora integration uncomment ZgatewayBT_stable in config_BT +#ifdef ZgatewayBT_v6xx #define QUESTION_MSG "AT+DISA?" boolean BTtoMQTT() { @@ -164,7 +164,7 @@ boolean process_miflora_data(char * rest_data, char * mac_adress){ #endif -#ifdef ZgatewayBT_stable +#ifndef ZgatewayBT_v6xx #define QUESTION_MSG "AT+DISI?" boolean BTtoMQTT() { while (softserial.available() > 0) { diff --git a/config_BT.h b/config_BT.h index b192686..7e202ca 100644 --- a/config_BT.h +++ b/config_BT.h @@ -28,7 +28,7 @@ #define TimeBtw_Read 10000 //define the time between 2 scans #define HM-10 //#define HM-11 // uncomment this line if you use HM-11 and comment the line above -#define ZgatewayBT_stable true //comment this line to test mi flora integration +#define ZgatewayBT_v6xx // comment if you don't have a firmware version of HM10/11 >= v601 #define delimiter "4f4b2b444953413a" #define delimiter_length 16