Comments (5)
Nice catch, thank you!
Fixed in bfd2d7d.
This will be available in the next binary release by the end of the week. Let me know if you need something sooner.
from android-ibeacon-service.
I modified a local version.
Just a comment,
I would document that call the set*ScanPeriod functions won't take effect if scanning is in progress and it's necessary to call setScanPeriods() to apply the changes if you already started scanning.
Or another options is to check if the service interface is there and then call the setScanPeriods() - less flexible but an easier use case.
from android-ibeacon-service.
Good point. I don't want to make the call to setScanPeriods() automatic, because it becomes a remote call that throws a RemoteException. The real intention is that this is configured up front and not at run time. (Although nothing stops you from doing that if you really want.)
How about this for documentation?
/**
* Sets the duration in milliseconds of each Bluetooth LE scan cycle to look for iBeacons when no
* ranging/monitoring clients are in the foreground. The new value will take affect the next time
* the IBeaconManager transitions between background and foreground mode. To have it take effect
* as soon as the next scan cycle starts, call setScanPeriods()
* @param p
*/
public void setBackgroundScanPeriod(long p) {
backgroundScanPeriod = p;
}
from android-ibeacon-service.
My suggestion is changing the setScanPeriods to updateScanPeriods (to use a different terminology then the other set functions) and document it something like this:
/**
* Updates an already running scan with scanPeriod/betweenScanPeriod according to Background/Foreground state.
* Change will take effect on next scan cycle or pause.
* @throws RemoteException - If the IBeaconManager is not bound to the service.
*/
public void updateScanPeriods() throws RemoteException {
And this is my suggestion for the other set functions.
/**
* Sets the duration in milliseconds of each Bluetooth LE scan cycle to look for iBeacons.
* This function is used to setup the period before starting a scan or switching between background/foreground.
* To have it effect on an already running scan (when the next cycle start), call {@link #setScanPeriods}
* @param p
*/
public void setForegroundScanPeriod(long p) {
from android-ibeacon-service.
Changed as described in 49d11ad
from android-ibeacon-service.
Related Issues (20)
- Is this library compatible with Google Glass XE16.x? HOT 6
- RSSI is negative with USB Radius beacon HOT 2
- Bluetooth crash recovery infinite loop on Galaxy S3 HOT 5
- Unable to start service Intent { cmp=myPackageName/com.radiusnetworks.ibeacon.service.IBeaconService } U=0: not found HOT 2
- Android Studio TroubleShooting
- NoclassDefFoundError when implements BootstrapNotifier for the Background mode. HOT 1
- [Feature] Add advertising support HOT 3
- Sequent 'didExitRegion()' and 'didEnterRegion()' event occurrence HOT 10
- Inconsistent monitoring behavior HOT 1
- Not able to integrate the beacon library with existing project HOT 1
- Not able to integrate the beacon library with existing project HOT 2
- Mulitple Beacon monitoring problems HOT 1
- Cordova Plugin tweak HOT 2
- Note From CEO Page is Down HOT 2
- Does Android BLE scanner ask scan response by default?
- is it not possible to bind a service on BeaconManager.bind(myService) ??? HOT 2
- How to calculate distance/accuracy when we need rapid updates from the beacons HOT 1
- how to import the beacon library to cordova?
- Bluetooth share not working
- Provide fields for the store number, store name, zip code and addresses in order data HOT 3
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 android-ibeacon-service.