Set BLE_FILTER_CONNECTABLE default to 0. (#1017)
This commit is contained in:
1 parent
45e9ba79d1
commit
e244decbed
2 files changed
+6
-2
No files matched your search
@@ -10,6 +10,10 @@ So as to use the autodiscovery function you need to have:
|
|||||||
You need to set `OpenHABAutoDiscovery` to true into `config_mqttDiscovery.h`
|
You need to set `OpenHABAutoDiscovery` to true into `config_mqttDiscovery.h`
|
||||||
`#define OpenHABDiscovery true`
|
`#define OpenHABDiscovery true`
|
||||||
|
|
||||||
|
::: tip
|
||||||
|
If you are connecting to BLE devices it is highly recommended to set `BLE_FILTER_CONNECTABLE` to `1` in `config_BT.h`. Otherwise you may encounter incomplete data.
|
||||||
|
:::
|
||||||
|
|
||||||
The things will appear in the inbox of the paperUI, add them and links the channels. You should see them into the control panel for further usage.
|
The things will appear in the inbox of the paperUI, add them and links the channels. You should see them into the control panel for further usage.
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -42,9 +42,9 @@ extern int btQueueLengthCount;
|
|||||||
bool bleConnect = AttemptBLECOnnect;
|
bool bleConnect = AttemptBLECOnnect;
|
||||||
|
|
||||||
// Sets whether to filter publishing of scanned devices that require a connection.
|
// Sets whether to filter publishing of scanned devices that require a connection.
|
||||||
// Default (1) prevents overwriting the publication of the device connection data with the advertised data.
|
// Setting this to 1 prevents overwriting the publication of the device connection data with the advertised data (Recommended for use with OpenHAB).
|
||||||
# ifndef BLE_FILTER_CONNECTABLE
|
# ifndef BLE_FILTER_CONNECTABLE
|
||||||
# define BLE_FILTER_CONNECTABLE 1
|
# define BLE_FILTER_CONNECTABLE 0
|
||||||
# endif
|
# endif
|
||||||
# include "NimBLEDevice.h"
|
# include "NimBLEDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user