1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.55k stars 784 forks source link

Feature Request:BLE scan custom devices? #210

Closed huexpub closed 5 years ago

huexpub commented 6 years ago

great A project, thanks, i do it work for 2 xiaomi bluetooth temp&humi in esp32 ,but BT scan my Bluetooth keybroad ,Bluetooth IR controler,Bluetooth headset,so the temp and humi update too long , if only scan the ble mac address of manual set,The efficiency of scan will be higher ?

tunip commented 6 years ago

Specifying the BLE mac addresses for scanning make sense. If you have multiple ESP32 in the house to cover all BLE devivces you scan sometimes the device multiple times.

thundergreen commented 6 years ago

What is the best setting for ibeacon presence detection? Bt scan interval to 1 second? It takes ages to recognise my rssi for my beacon . Wanna speed this up.hiw can I do though ?

codegrau commented 6 years ago

@1technophile Would that feature make it possible to "scan" for presence detection with iPhones without an external app like https://github.com/andrewjfreyer/monitor this bash script on Raspberry Pi would do? --> https://github.com/andrewjfreyer/monitor#connectable-devices

So scanning (only) specific Mac Addresses would make it really easy for presence detection...

1technophile commented 5 years ago

white list and black list of ble devices has been introduced in V0.9.1 https://github.com/1technophile/OpenMQTTGateway/wiki/User-guide-bluetooth-BLE-09#setting-a-white-or-black-list