Minimize decompose, remove calls to extract_char, check data length before parsing (#724)

This commit is contained in:
Jon authored and GitHub committed 2020-08-15 08:12:27 -05:00
1 parent a53f8b4339
commit 418c1d0c81
3 files changed
+82 -78

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ extern void MQTTtoBT(char* topicOri, JsonObject& RFdata);
//#define HM-11 // uncomment this line if you use HM-11 and comment the line above
//#define HM_BLUE_LED_STOP true //uncomment to stop the blue led light of HM1X
#define BLEdelimiter "4f4b2b444953413a" // OK+DISA:
#define BLEEndOfDiscovery "4f4b2b4449534345" // OK+DISCE
#define BLEdelimiterLength 16
#define CRLR "0d0a"
#define CRLR_Length 4
#define ServicedataMinLength 29
#ifndef TimeBtw_Read