[DISC] Add the capability to use the device BLE name (#1936)
This commit is contained in:
1 parent
55d9d87a77
commit
68fd4dc17e
4 files changed
+30
-18
No files matched your search
+4
-9
@@ -116,15 +116,9 @@ extern String stateBTMeasures(bool);
|
||||
# define HassPresence false //true if we publish into Home Assistant presence topic
|
||||
#endif
|
||||
|
||||
#define HMSerialSpeed 9600 // Communication speed with the HM module, softwareserial doesn't support 115200
|
||||
//#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 BLE_CNCT_TIMEOUT 3000
|
||||
#ifndef BLE_CNCT_TIMEOUT
|
||||
# define BLE_CNCT_TIMEOUT 3000
|
||||
#endif
|
||||
|
||||
unsigned long scanCount = 0;
|
||||
|
||||
@@ -210,6 +204,7 @@ struct BLEAction {
|
||||
|
||||
struct BLEdevice {
|
||||
char macAdr[18];
|
||||
char name[20];
|
||||
int macType;
|
||||
bool isDisc;
|
||||
bool isWhtL;
|
||||
|
||||
Reference in new issue
Block a user