mijiaSDK
mijiaSDK copied to clipboard
固件版本号
/**
- ApiLevel: 33
- 必须与设备处于连接状态的时候才能读取 */ XmBluetoothManager.instance().getBluetoothFirmwareVersion(mac, new Response.BleReadFirmwareVersionResponse() { @Override public void onResponse(int code, String version) { // version类似1.0.3_2001 } });
用以上接口获取硬件版本号,获取不正确???
getBluetoothFirmwareVersion是通过蓝牙协议从设备端读取版本属性。如果版本不正确,建议先检查设备端写入的版本属性是否正确。如果设备端ok,可以抓一份Log提供给我看下。
我采用了,通过蓝牙协议调用read方法,直接从设备读取版本号。谢