|
|
|
@ -121,7 +121,7 @@ public class BlueToothDeviceActivity extends BaseActivity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
showLog("扫描发现设备" + device.getName() + "," + device.getAddress());
|
|
|
|
showLog("扫描发现设备" + device.getName() + "," + device.getAddress());
|
|
|
|
String deviceName = device.getName();
|
|
|
|
String deviceName = device.getName();
|
|
|
|
if (deviceName != null && !deviceName.isEmpty()){
|
|
|
|
if (deviceName != null && !deviceName.isEmpty()&&deviceName.startsWith("W3")){
|
|
|
|
//showLog(new Gson().toJson(device));
|
|
|
|
//showLog(new Gson().toJson(device));
|
|
|
|
mLeDeviceListAdapter.addDevice(device);
|
|
|
|
mLeDeviceListAdapter.addDevice(device);
|
|
|
|
mLeDeviceListAdapter.notifyDataSetChanged();
|
|
|
|
mLeDeviceListAdapter.notifyDataSetChanged();
|
|
|
|
|