Comments (3)
Yeah, that's a result of how the iOS CoreBluetooth API works. It hides the MAC address, and instead assigns a UUID to each BLE device it detects. These UUIDs are random and temporary; you run the same program again on the same device, you might get different ones.
Android gives you the proper MAC address.
from cordova-ble.
@fredrikeldh But then how can I associate a randomly generated address with an object in the DB? Or rather, what's the proper way to associate a device with the information you want to present? It doesn't seem like device.address
is a reliable way to identify a device with information you want to present.
from cordova-ble.
"proper" way? That's up for debate. If you have control over the devices' advertisements, you might add some Manufacturer Data, or some Service Data, which you can then read through device.advertisementData
.
I see you've mentioned Estimote, so I'll guess you're using iBeacons. In that case, I recommend using one of our iBeacon plugins. They will give you more permanent device identifiers.
from cordova-ble.
Related Issues (20)
- startScan() only lists device once
- How to tell which device disconnected?
- BLE.java uses or overrides a deprecated API HOT 1
- Old API running on Nougat
- RSSI read not working in real app HOT 6
- iOS 11 connection loss HOT 3
- connectToDevice calls both the success and failure callbacks in some cases
- When the device does not have blue tooth the application crashes and stops
- Nested Service UUID Arrays
- I can not send data with writeCharacteristics
- List the services HOT 1
- Dialog BLE sensor, How can i change the sampling rate?
- Plugin doesn't work after sensor tag device update
- not able to find cordova.js HOT 2
- characteristicsCallbacks keys instead of UUID, the hash of object
- android: onConnectionState change is not handled correctly HOT 1
- Sendig String/Text data HOT 1
- how to set MTU HOT 1
- dataCallback of enableNotification gets called to often HOT 1
- Not working on Android 10+ (permission issue?) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-ble.