Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

固件版本号 #16

Open
Tywei24 opened this issue Jan 25, 2019 · 2 comments
Open

固件版本号 #16

Tywei24 opened this issue Jan 25, 2019 · 2 comments

Comments

@Tywei24
Copy link

Tywei24 commented Jan 25, 2019

/**

  • ApiLevel: 33
  • 必须与设备处于连接状态的时候才能读取
    */
    XmBluetoothManager.instance().getBluetoothFirmwareVersion(mac, new Response.BleReadFirmwareVersionResponse() {
    @OverRide
    public void onResponse(int code, String version) {
    // version类似1.0.3_2001
    }
    });

用以上接口获取硬件版本号,获取不正确???

@M201370367
Copy link
Contributor

getBluetoothFirmwareVersion是通过蓝牙协议从设备端读取版本属性。如果版本不正确,建议先检查设备端写入的版本属性是否正确。如果设备端ok,可以抓一份Log提供给我看下。

@Tywei24
Copy link
Author

Tywei24 commented Jan 28, 2019

我采用了,通过蓝牙协议调用read方法,直接从设备读取版本号。谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants