iBeacon Plugin
This plugin allows you to find ibeacons nearby and create an beacons from your device
Platforms:
the ibeacon plugin only works with iOS 7.0+(not simulator due to ibeacon not being testable in simulator)Limitations:
please use two device to test demo projectFunctions:
ibeacon.search(uuids,listener)
uuids(array)(required) uuids to seach for example {"00000000-0000-0000-0000-000000000000", ""00000000-0000-0000-0000-000000000001"}
listener(function) (required)
- event.accuracy(string)-- possible values are
- "best"
- "kilometer"
- "hundred meters"
- "three kilometers"
- "nearest ten meters"
- "best for navigation"
- "unknown"
- event.major(integer)-- The most significant value in the beacon
- event.minor(integer)-- The least significant value in the beacon
- event.uuid(string)-- the uuid of the beacon
- event.proximity(string)-- how close the user is
- "immediate"
- "near"
- "far"
- "unknown"
- event.rssi(number)-- The received signal strength of the beacon, measured in decibels
ibeacon.setTimer(seconds)
seconds(integer)(required) how often the device should search
ibeacon.stopUUIDSearch(uuid)
uuid(string)(required) stop search for a particular uuid
ibeacon.stopAllSearchs()
-- stop all searching for beaconsibeacon.startTransmitting(uuid, major, minor)
-- turns device into iBeaconuuid(string)(optional) the uuid to broadcast
major(integer)(required) the major to broadcast
minor(integer)(required) the minor to broadcast