Hello guys,
I’m creating an Android app with your SDK. Beacons are registered and location added in estimote cloud, as shown in your instructions.
I’m using 4 beacons to register my room, but when running the app, it tells me permanently that I’m out of range.
My code snippet:
public void accessBeacons(Context context) {
CloudCredentials cloudCredentials = new EstimoteCloudCredentials("myData", "myData");
IndoorCloudManager cloudManager = new IndoorCloudManagerFactory().create(context, cloudCredentials);
cloudManager.getLocation("myData", new CloudCallback<Location>()
{
@Override
public void success(Location location) {
indoorLocationManager =
new IndoorLocationManagerBuilder(context, location, cloudCredentials)
.withDefaultScanner()
.build();
indoorLocationManager.setOnPositionUpdateListener(new OnPositionUpdateListener() {
@Override
public void onPositionUpdate(LocationPosition position) {
System.out.println("X: " + position.getX() + "Y: " + position.getY());
}
@Override
public void onPositionOutsideLocation() {
System.out.println("Out of range.");
}
});
}
@Override
public void failure(EstimoteCloudException e) {
System.out.println("Having problems with estimote cloud: " + e);
}
});
}
Further information, about what I use:
- Android SDK 22
- indoorsdk 2.0.0
- 4 low energy beacons
My questions:
- Do you know why I’m permanently out of range?
- The beacons are not fixed yet, so I moved them around. Not a lot, but +/- 10cm in the registered range shown in my cloud location. Is that a problem?
- Is mirroring a room possible? Meaning if I switch the location of the opposing beacons, would it still work?
Any help is appreciated! Thanks!