mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00
for now allow bt connects always (though our characteristics are locked down)
This commit is contained in:
parent
422e213d2a
commit
c3c127d425
@ -207,7 +207,10 @@ BLEServer *initBLE(std::string deviceName, std::string hwVendor, std::string swV
|
|||||||
|
|
||||||
// Start advertising
|
// Start advertising
|
||||||
BLEAdvertising *advert = pServer->getAdvertising();
|
BLEAdvertising *advert = pServer->getAdvertising();
|
||||||
advert->setScanFilter(false, true); // We let anyone scan for us (FIXME, perhaps only allow that until we are paired with a phone and configured) but only let whitelist phones connect
|
|
||||||
|
// FIXME turn on this restriction only after the device is paired with a phone
|
||||||
|
// advert->setScanFilter(false, true); // We let anyone scan for us (FIXME, perhaps only allow that until we are paired with a phone and configured) but only let whitelist phones connect
|
||||||
|
|
||||||
advert->start();
|
advert->start();
|
||||||
|
|
||||||
BLESecurity *pSecurity = new BLESecurity();
|
BLESecurity *pSecurity = new BLESecurity();
|
||||||
|
Loading…
Reference in New Issue
Block a user