Android Open Source - Android-BleEventAdapter Characteristic Write Event






From Project

Back to project page Android-BleEventAdapter.

License

The source code is released under:

Apache License

If you think the Android project Android-BleEventAdapter 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.thedamfr.android.BleEventAdapter.events;
/*from   ww w .ja va  2  s .co m*/
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;


public class CharacteristicWriteEvent {
    private final BluetoothGatt mGatt;
    private final BluetoothGattCharacteristic mCharacteristic;
    private final int mStatus;

    public CharacteristicWriteEvent(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
        mGatt = gatt;
        mCharacteristic = characteristic;
        mStatus = status;
    }

    public BluetoothGatt getmGatt() {
        return mGatt;
    }

    public BluetoothGattCharacteristic getmCharacteristic() {
        return mCharacteristic;
    }

    public int getmStatus() {
        return mStatus;
    }

    @Override
    public String toString() {
        return "CharacteristicWriteEvent{" +
                "mGatt=" + mGatt +
                ", mCharacteristic=" + mCharacteristic +
                ", mStatus=" + mStatus +
                '}';
    }
}




Java Source Code List

com.thedamfr.android.BleEventAdapter.BleEventAdapter.java
com.thedamfr.android.BleEventAdapter.BleEventBus.java
com.thedamfr.android.BleEventAdapter.EventLogger.java
com.thedamfr.android.BleEventAdapter.events.CharacteristicChangedEvent.java
com.thedamfr.android.BleEventAdapter.events.CharacteristicReadEvent.java
com.thedamfr.android.BleEventAdapter.events.CharacteristicWriteEvent.java
com.thedamfr.android.BleEventAdapter.events.DescriptorReadEvent.java
com.thedamfr.android.BleEventAdapter.events.DescriptorWriteEvent.java
com.thedamfr.android.BleEventAdapter.events.DiscoveredDevicesEvent.java
com.thedamfr.android.BleEventAdapter.events.DiscoveryServiceEvent.java
com.thedamfr.android.BleEventAdapter.events.GattConnectionStateChangedEvent.java
com.thedamfr.android.BleEventAdapter.events.ReadRemoteRssiEvent.java
com.thedamfr.android.BleEventAdapter.events.ReliableWriteCompleted.java
com.thedamfr.android.BleEventAdapter.events.ScanningEvent.java
com.thedamfr.android.BleEventAdapter.events.ServiceDiscoveredEvent.java
com.thedamfr.android.BleEventAdapter.service.discovery.device.DeviceDiscoveryService.java
com.thedamfr.android.BleEventAdapter.service.gatt.GattConnectionState.java
com.thedamfr.android.BleEventAdapter.service.gatt.GattService.java
com.vashisthg.ble.MainActivity.java