[x] Put an X between the brackets on this line if you have done all of the following:
My Android device/devices supports BLE and has Android OS version >= 4.4
My Android device/devices have Bluetooth enabled
My app has Location Permissions granted
Basic information
Estimote SDK version:1.0.12
Android devices affected:Samsung Galaxy tab
Android OS version affected:Lollipop 5.1
Beacon hardware version:J1.6
Description
1.We are unable to create connection for proximity beacons with Estimote/Android-SDK.
2.We are able to create connection for location beacons.
(Optional) Steps to reproduce:
[First Step]
[Second Step]
[and so on...]
Expected behavior:Read and Write configuration
Actual behavior:Connection time out
Logs and code
ConfigurableDevice configurableDevice =(ConfigurableDevice)getIntent().getParcelableExtra("ConfigurableDevice");
DeviceConnectionProvider connectionProvider = new DeviceConnectionProvider(this);
connectionProvider.connectToService(new DeviceConnectionProvider.ConnectionProviderCallback() {
@Override
public void onConnectedToService() {
// Handle your actions here. You are now connected to connection service.
// For example: you can create DeviceConnection object here from connectionProvider.
Log.d(TAG, "onConnectedToService");
sample_text.setText(sample_text.getText().toString() + " \n " + " Called onConnectedToService" + "\n");
connectToBeacon();
}
});
void connectToBeacon(){
DeviceConnection connection = connectionProvider.getConnection(configurableDevice);
connection.connect(new DeviceConnectionCallback() {
@Override
public void onConnected() {
// Do something with your connection.
// You can for example read device settings, or make an firmware update.
Log.d(TAG, "onConnected Read device details." );
readDeviceDetails();
}
@Override
public void onDisconnected() {
// Every time your device gets disconnected, you can handle that here.
// For example: in this state you can try reconnecting to your device.
Log.d(TAG, "onDisconnected");
}
@Override
public void onConnectionFailed(final DeviceConnectionException exception) {
// Handle every connection error here.
Log.d(TAG, "onConnectionFailed " + exception.getMessage());
}
});
}
Prerequisites
Basic information
Estimote SDK version:
1.0.12
Android devices affected:
Samsung Galaxy tab
Android OS version affected:
Lollipop 5.1
Beacon hardware version:
J1.6
Description
1.We are unable to create connection for proximity beacons with Estimote/Android-SDK. 2.We are able to create connection for location beacons. (Optional) Steps to reproduce:
Expected behavior:
Read and Write configuration
Actual behavior:
Connection time out
Logs and code