-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3461f1b
commit a690320
Showing
14 changed files
with
261 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
193 changes: 126 additions & 67 deletions
193
FastBleLib/src/main/java/com/clj/fastble/bluetooth/BleBluetooth.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
FastBleLib/src/main/java/com/clj/fastble/data/BleConnectStateParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.clj.fastble.data; | ||
|
||
|
||
import android.bluetooth.BluetoothGatt; | ||
|
||
import com.clj.fastble.callback.BleGattCallback; | ||
|
||
public class BleConnectStateParameter { | ||
|
||
private BleGattCallback callback; | ||
private BluetoothGatt gatt; | ||
private int status; | ||
private boolean isAcitive; | ||
private BleDevice bleDevice; | ||
|
||
|
||
public BleConnectStateParameter(BleGattCallback callback, BluetoothGatt gatt, int status) { | ||
this.callback = callback; | ||
this.gatt = gatt; | ||
this.status = status; | ||
} | ||
|
||
public BleGattCallback getCallback() { | ||
return callback; | ||
} | ||
|
||
public void setCallback(BleGattCallback callback) { | ||
this.callback = callback; | ||
} | ||
|
||
public BluetoothGatt getGatt() { | ||
return gatt; | ||
} | ||
|
||
public void setGatt(BluetoothGatt gatt) { | ||
this.gatt = gatt; | ||
} | ||
|
||
public int getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(int status) { | ||
this.status = status; | ||
} | ||
|
||
public boolean isAcitive() { | ||
return isAcitive; | ||
} | ||
|
||
public void setAcitive(boolean acitive) { | ||
isAcitive = acitive; | ||
} | ||
|
||
public BleDevice getBleDevice() { | ||
return bleDevice; | ||
} | ||
|
||
public void setBleDevice(BleDevice bleDevice) { | ||
this.bleDevice = bleDevice; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.