noble
noble copied to clipboard
almost all localName's undefined on Raspberry Pi zero W Raspbian Lite and MacOS 10.15.4 (Catalina)
I consistently get an undefined localName variable. Im running node version 8.9.0 on a clean install of raspbian, + node version 10.14.1 on Mac OS 10.15.4. The dependencies are in order. Some companies do return this value consistently: Sennheiser Communications A/S, LG Electronics and TomTom. Then Google, Microsoft, Tesla Motors and Apple, Inc. devices won't return a localName. Manufacturer is inferred from first 4 bytes of manufacturing data.
This is just a theory, but other BLE libraries I have used have the concept of "Active Scan", which if you enable sees to get better results for localName
. My theory is that some BLE devices always broadcast their presence with the localName
populated, while other devices only broadcast their full info when they receive a probe.
https://github.com/nkolban/ESP32_BLE_Arduino/blob/master/src/BLEScan.cpp#L152