set BLE scans interval per mqtt and on demand BLE scans
#373 to change the BLE scan interval publish a payload {"interval":66666} in ms to "home/OpenMQTTGateway/commands/MQTTtoBT/set" to generate a scan publish a 0 interval payload {"interval":0}
This commit is contained in:
1 parent
8aad413ce3
commit
56bfef8e9c
2 files changed
+55
-30
No files matched your search
+5
-5
@@ -25,21 +25,21 @@
|
||||
*/
|
||||
/*----------------------BT topics & parameters-------------------------*/
|
||||
#define subjectBTtoMQTT Base_Topic Gateway_Name "/BTtoMQTT/"
|
||||
#define subjectMQTTtoRF Base_Topic Gateway_Name "/commands/MQTTto433"
|
||||
#define subjectMQTTtoBTset Base_Topic Gateway_Name "/commands/MQTTtoBT/set"
|
||||
#define TimeBtw_Read 55555 //define the time between 2 scans
|
||||
#define TimeBtw_Read 55555 //define default time between 2 scans
|
||||
#define Scan_duration 10 //define the time for a scan
|
||||
#define HM-10
|
||||
#define HM-10
|
||||
//#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 delimiter "4f4b2b444953413a"
|
||||
#define delimiter_length 16
|
||||
#define BLEdelimiter "4f4b2b444953413a"
|
||||
#define pubBLEServiceData true // comment if you don't want to publish service data (in case you are having too heavy service data) https://github.com/1technophile/OpenMQTTGateway/issues/318#issuecomment-446064707
|
||||
|
||||
/*-------------------HOME ASSISTANT ROOM PRESENCE ----------------------*/
|
||||
// if not commented Home presence integration with HOME ASSISTANT is activated
|
||||
#define subjectHomePresence Base_Topic "home_presence/" Gateway_Name // will send Home Assistant room presence message to this topic (first part is same for all rooms, second is room name)
|
||||
|
||||
unsigned int BLEinterval ; //time between 2 scans
|
||||
|
||||
struct BLEdevice{
|
||||
char macAdr[13];
|
||||
boolean isDisc;
|
||||
|
||||
Reference in new issue
Block a user