altbeacon / ios-beacon-tools Goto Github PK
View Code? Open in Web Editor NEWTools for working with beacons with CoreBluetooth
License: Apache License 2.0
Tools for working with beacons with CoreBluetooth
License: Apache License 2.0
Hi we have downloaded this code as run as per the guideline mentioned ion the project but once we run this project it start to give the error says 'startScanning ,stopscanning' not implemented. but when we have changed the method name startscanningAltbeacon then it start to work like charm.
Hi,
I am able to run the project and use the RNLBeaconScanner
to scan for beacons but it would be great to have an example app which utilises the RNLLocationTracker
. Is there an example anywhere?
Only Once it has worked but never before n never after, However it is broadcasting beacon in background also.
But this does not solve the problem as the beacon has to always scan for the another user(Even if there is no interent)
I have added the filed to one of my project, everything works well but there is no mechanism to get the distance. I tried this article formula to calculate the distance but I am getting very vague value as compared to the alt beacon library for android. I see alt beacon uses different calculations method for that.
However, the article seems quite outdated as some of the hyperlinks work no more. Can you shed some light on it @davidgyoung , maybe some tips that can be helpful for me to begin with.
Please help in to maintain the signal strength (RSSI) between the device and the beacon.
If I have placed it near and again changed its position then it should took lesser time to get stable and show approximately stable distance in less time.
i am using RNLBeacon sdk in my project, it detect only Alt beacon not i beacon. i want both. if you have any suggestion please let me know.
PR #4 is a reverse version of #6, which both a fix for issue #5. You either choose one, not both. Since you merged both, the issue raise again but with a different error:
"startScanningAltbeacons, stopScanningAltbeacons" not implemented
I suggest you using merge #6 instead or #4 since it only change implement, not headers @davidgyoung
I can't reopen #5 so I create #7 instead
Hello, I was trying the sample code to scan nearby beacons. My can detect altbeacon an eddystore, however on the library cannot detect ibeacon format. Can i ask if did i missed something? thanks
`
func getBeacons(_ completed: @escaping(_ list: [RNLBeacon]) -> ()){
if let detectedBeacons = scanner?.trackedBeacons() as? [RNLBeacon] {
self.detectedBeacon = detectedBeacons
completed(detectedBeacons)
for beacon in detectedBeacons {
if (beacon.beaconTypeCode.intValue == 0xbeac) {
// this is an AltBeacon
NSLog("Detected AltBeacon id1: %@ id2: %@ id3: %@", beacon.id1, beacon.id2, beacon.id3)
}
else if (beacon.beaconTypeCode.intValue == 0x00 && beacon.serviceUuid.intValue == 0xFEAA) {
// this is eddystone uid
NSLog("Detected EDDYSTONE-UID with namespace %@ instance %@", beacon.id1, beacon.id2)
}
else if (beacon.beaconTypeCode.intValue == 0x10 && beacon.serviceUuid.intValue == 0xFEAA) {
// this is eddystone url
NSLog("Detected EDDYSTONE-URL with %@", RNLURLBeaconCompressor.urlString(fromEddystoneURLIdentifier: beacon.id1))
}
else {
NSLog("Some other beacon detectd")
// some other beacon type
}
NSLog("The beacon is about %.1f meters away", beacon.distance)
}
}
}
`
I use this project to scan beacons, and I need to continue scanning even if the app goes to the background. The case I am having, the iPhone will not go to sleep or lock the screen but the user is supposed to go to google maps navigation screen and again come back to my app. While my app is in the background and google map is in the foreground, I still want my app to detect beacons and play a sound that I am doing currently on android using the alt beacon library. Is this possible by activating background modes or we cannot add this feature at all using CoreBluetooth?
I use a code similar to the one indicated in the README file.
At the beginning, no beacon appears in the trackedBeacons list. I need to stop the bluetooth and restart it for them to appear. Do you have an explanation for this? thank you in advance for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.