public DeviceDialogAbs(Context context, IEspDevice device) {
    mUser = BEspUser.getBuilder().getInstance();
    mContext = context;
    mDevice = device;

    mTaskList = new Vector<StatusTask>();
  }
  @Override
  public List<IEspDevice> doAcitonEspButtonGetDevices(IEspDevice inetDevice, String buttonMac) {
    IEspCommandEspButtonGetDevices command = new EspCommandEspButtonGetDevices();
    List<String> bssids = command.doCommandEspButtonGetDevices(inetDevice, buttonMac);

    if (bssids != null) {
      IEspUser user = BEspUser.getBuilder().getInstance();
      List<IEspDevice> allDevices = user.getAllDeviceList();
      List<IEspDevice> result = new ArrayList<IEspDevice>();

      for (String bssid : bssids) {
        for (IEspDevice device : allDevices) {
          if (bssid.equals(device.getBssid())) {
            result.add(device);
          }
        }
      }

      return result;
    }

    return null;
  }