Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:bs2_setcustomcardconfig [2023/08/31 21:28]
kkshin [Sample Code(C++)]
en:bs2_setcustomcardconfig [2023/08/31 21:38] (current)
kkshin [Sample Code(C++)]
Line 47: Line 47:
  }  }
  
- int sdkResult = cc.getCustomCardConfig(id,​ config);+ sdkResult = cc.getCustomCardConfig(id,​ config);
  if (BS_SDK_SUCCESS != sdkResult)  if (BS_SDK_SUCCESS != sdkResult)
  return sdkResult;  return sdkResult;
Line 121: Line 121:
  msg = "​Please enter the fileReadKeyNumber of desfire card.";​  msg = "​Please enter the fileReadKeyNumber of desfire card.";​
  config.desfire.desfireAppKey.fileReadKeyNumber = (uint8_t)Utility::​getInput<​uint32_t>​(msg);​  config.desfire.desfireAppKey.fileReadKeyNumber = (uint8_t)Utility::​getInput<​uint32_t>​(msg);​
- 
-#if DO_NOT_NEED 
- oss.str(""​);​ 
- oss << "​Please enter the hexadecimal " << sizeof(config.desfire.desfireAppKey.fileWriteKey) << "​-bytes fileWriteKey for desfire card." << endl; 
- oss << " [Like 12 34 56 ... EF]" << endl; 
- Utility::​getLineHexaString<​uint8_t>​(oss.str(),​ config.desfire.desfireAppKey.fileWriteKey,​ sizeof(config.desfire.desfireAppKey.fileWriteKey));​ 
- 
- msg = "​Please enter the fileWriteKeyNumber of desfire card.";​ 
- config.desfire.desfireAppKey.fileWriteKeyNumber = (uint8_t)Utility::​getInput<​uint32_t>​(msg);​ 
-#endif 
  }  }