super.onDestroy();
CaInterface.stopBtPairingService();
CaInterface.stopManagerService();
- CaBtPairingInterface.destroyEdrInterface();
if (mGatt != null) {
mGatt.close();
mGatt = null;
sb.append("Set Connect with : ");
try {
final String address = mBluetoothDevices.get(pos).getAddress();
+ Common.setLeAddress(address);
CaInterface.setAutoConnectionDevice(address);
OcPlatform.OnResourceFoundListener resourceFoundListener =
new OcPlatform.OnResourceFoundListener() {
public void onResourceFound(OcResource ocResource) {
Log.i(TAG, "onResourceFound : " + ocResource.getUri());
}
+
+ @Override
+ public void onFindResourceFailed(Throwable throwable, String uri) {
+ Log.i(TAG, "findResource request has failed");
+ Log.e(TAG, throwable.toString());
+ }
};
OcPlatform.findResource("", address + OcPlatform.WELL_KNOWN_QUERY,
EnumSet.of(OcConnectivityType.CT_ADAPTER_GATT_BTLE),