evothings / cordova-ibeacon Goto Github PK
View Code? Open in Web Editor NEWExperimental JavaScript library to scan for iBeacons
Experimental JavaScript library to scan for iBeacons
I know basically every repo you guys have is Apache 2 but could you please indicate a license on this repo?
When trying to connect to an iBeacon, I got an error because somewhere the code was trying to convert a JSON object to an integer value.
Figured out that in the iBeacon.js file, on line 168, handle should be replaced by handle.deviceHandle. This makes the error disappear
evothings.ble.rssi(handle.deviceHandle, rssiHandler, fail);
should be
evothings.ble.rssi(info.deviceHandle, rssiHandler, fail);
I'm using an iPhone application that can simulate iBeacons; After I set the Major and Minor values on the app and use your code on my Android phonegap app to detect beacons, everything works as expected except the major and minor numbers that I get back seem to be multiplied by a 100. To I set major to 4 and minor to 6, when I read them back and use your hex16 function or the toString(16), I get "400" and "600". Am I missing something here or is this a bug ?
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.