Get Bluetooth gatt To String - Android Bluetooth

Android examples for Bluetooth:Bluetooth State

Description

Get Bluetooth gatt To String

Demo Code


//package com.java2s;
import android.bluetooth.BluetoothGatt;

public class Main {
    public static String gattToString(BluetoothGatt gatt) {
        if (gatt == null) {
            return "null";
        }/*ww w.j  av a 2s .c om*/
        return "gatt:" + gatt.getDevice().getName();
    }
}

Related Tutorials