Skip to content

Commit

Permalink
更新README文件
Browse files Browse the repository at this point in the history
  • Loading branch information
aicareles committed Jan 29, 2019
1 parent a6a9284 commit deb8817
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,34 @@
```

### 二、历史版本介绍:
[![Version](https://img.shields.io/badge/BleLib-v2.5.3-blue.svg)](https://bintray.com/superliu/maven/BleLib/2.5.3)
```
private void sendEntityData() throws IOException {
byte[] data = ByteUtils.toByteArray(getAssets().open("WhiteChristmas.bin"));
Log.e(TAG, "sendEntityData: "+data.length);
mBle.writeEntity(mBle.getConnetedDevices().get(0), data, 20, 50, new BleWriteEntityCallback<BleDevice>() {
@Override
public void onWriteSuccess() {
L.e("writeEntity", "onWriteSuccess");
}
@Override
public void onWriteFailed() {
L.e("writeEntity", "onWriteFailed");
}
@Override
public void onWriteProgress(double progress) {
Log.e("writeEntity", "当前发送进度: "+progress);
}
@Override
public void onWriteCancel() {
Log.e(TAG, "onWriteCancel: ");
}
});
}
```
[![Version](https://img.shields.io/badge/BleLib-v2.5.2%20beta-blue.svg)](https://bintray.com/superliu/maven/BleLib/2.5.2-beta)
```
1、添加自动连接的接口(使用新的初始化写法)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void onWriteFailed() {

@Override
public void onWriteProgress(double progress) {
Log.e("writeEntity", "onWriteProgress: "+progress);
Log.e("writeEntity", "当前发送进度: "+progress);
}

@Override
Expand Down

0 comments on commit deb8817

Please sign in to comment.