Skip to content

Commit

Permalink
fix(ble): comment in java
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Dec 11, 2018
1 parent dffeead commit e20f1a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -22,7 +22,7 @@
import java.util.concurrent.Future;
import java.util.concurrent.Semaphore;

////import core.Core;
import core.Core;

@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
public class BertyDevice {
Expand Down Expand Up @@ -71,7 +71,7 @@ public void run() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
try {
latchRdy.await();
//// Core.addToPeerStore(peerID, ma);
Core.addToPeerStore(peerID, ma);
} catch (Exception e) {
BertyUtils.logger("error", TAG, "waiting/writing failed: " + e.getMessage());
}
Expand Down
Expand Up @@ -17,7 +17,7 @@
import java.nio.charset.Charset;
import java.util.UUID;

////import core.Core;
import core.Core;

import static android.bluetooth.BluetoothGatt.GATT_FAILURE;
import static android.bluetooth.BluetoothGatt.GATT_SUCCESS;
Expand Down Expand Up @@ -164,7 +164,7 @@ public void onCharacteristicWriteRequest(BluetoothDevice device, int requestId,
BertyDevice bDevice = BertyUtils.getDeviceFromAddr(device.getAddress());
if (charID.equals(BertyUtils.WRITER_UUID)) {
BertyUtils.logger("debug", TAG, "rep needed: " + responseNeeded + "prepared: " + preparedWrite + " transid: " + requestId + " offset: " + offset + " len: " + value.length);
//// Core.bytesToConn(bDevice.ma, value);
Core.bytesToConn(bDevice.ma, value);
if (responseNeeded) {
mBluetoothGattServer.sendResponse(device, requestId, GATT_SUCCESS, offset, value);
}
Expand Down
Expand Up @@ -20,7 +20,7 @@
import static android.bluetooth.BluetoothGattCharacteristic.PROPERTY_WRITE;
import static android.bluetooth.BluetoothGattService.SERVICE_TYPE_PRIMARY;

////import core.Core;
import core.Core;

@SuppressLint("LongLogTag")
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
Expand All @@ -40,7 +40,7 @@ public class BertyUtils {
private static final String TAG = "utils";

public static void logger(String level, String tag, String log) {
//// Core.goLogger(tag, level, log);
Core.goLogger(tag, level, log);
}

public String ma;
Expand Down

0 comments on commit e20f1a0

Please sign in to comment.