Android Open Source - BLEService B T L E Command Disconnect

From Project

Back to project page BLEService.


The source code is released under:

Copyright (c) 2014, Ratio LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...

If you think the Android project BLEService listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ratio.deviceService.command;
// ww w  . ja  va2 s.c om
import android.util.Log;

import com.ratio.deviceService.BTLEDeviceManager;
import com.ratio.exceptions.DeviceManagerException;

 * Queued command to read a character from the BTLE device
public class BTLECommandDisconnect extends BTLECommand {
  public BTLECommandDisconnect(BTLEDeviceManager.BTDeviceInfo  deviceInfo) {
  public boolean execute(BTLEDeviceManager deviceManager) throws DeviceManagerException {
    Log.i(TAG, "disconnecting from device");
        return true;
  public String toString() {
    return BTLECommandDisconnect.class.getSimpleName() + " addr: " + mDeviceInfo.getDeviceAddress();

Java Source Code List