I want to simulate multiple ibeacon signal using my ipad's bluetooth, is it possible
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
You cannot make multiple transmissions go out simultaneously, but you can simulate this by switching between two or more transmitters with a timer. iOS devices normally send out 10 advertising packets per second when transmitting as an iBeacon. But receivers only expect that packets be received at a minimum of once every second for normal operations.
Try setting up a timer to switch back and forth between two iBeacon transmitters (turn one off then the other on). Like this:
I tested this and it works -- a second iOS device ranged both iBeacons.
If I tried to switch between the two identifiers more than once per second, the receiving iOS device would periodically lose track of one of the beacons. Because this code is only switching once per second, the receiver will have gaps of a little over one second when it won't be receiving one of the two iBeacon transmissions. This may or may not cause some unexpected side effects on ranging/monitoring on the receiver side. But you can try it and see.