-
Notifications
You must be signed in to change notification settings - Fork 39
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
Showing
6 changed files
with
128 additions
and
35 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
23 changes: 23 additions & 0 deletions
23
lmbluetoothsdk/src/main/java/co/lujun/lmbluetoothsdk/base/State.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,23 @@ | ||
package co.lujun.lmbluetoothsdk.base; | ||
|
||
/** | ||
* Author: lujun(http://blog.lujun.co) | ||
* Date: 2016/1/19 12:12 | ||
*/ | ||
public class State { | ||
|
||
// we're doing nothing | ||
public static final int STATE_NONE = 0; | ||
|
||
// now listening for incoming connections | ||
public static final int STATE_LISTEN = 1; | ||
|
||
// now initiating an outgoing connection | ||
public static final int STATE_CONNECTING = 2; | ||
|
||
// now connected to a remote device | ||
public static final int STATE_CONNECTED = 3; | ||
|
||
// unknown state | ||
public static final int STATE_UNKNOWN = 4; | ||
} |
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