Differences

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

Link to this comparison view

Next revision
Previous revision
en:bs2_setcredentialkeyinfo [2018/03/20 15:00]
yjjung created
— (current)
Line 1: Line 1:
-~~NOTOC~~ 
-[[sdk_api]] > [[BS2_SetCredentialKeyInfo]] 
  
-===== BS2_SetCredentialKeyInfo ===== 
-[+ V2.6.0] Sets encryption key information of the device.\\ 
-If the device'​s key is the same as the one you are currently setting, the key setting will be ignored. \\ 
-Also, if the key of the device is different from the one you want to set, the key will be set and the device'​s data will be erased. 
-==== Declaration ==== 
-<code cpp> 
-#include "​BS_API.h"​ 
- 
-int BS2_SetCredentialKeyInfo(void* context, uint32_t deviceId, const BS2CredentialKeyInfo* keyInfo); 
-</​code>​ 
- 
-<callout type="​info">​ 
-[[sdk_api#​BS2CredentialKeyInfo|See BS2CredentialKeyInfo Structure]] 
-</​callout>​ 
-==== Parameter ==== 
-  * [In] ''//​context//''​ : Context 
-  * [In] ''//​deviceId//''​ : Device ID 
-  * [In] ''//​keyInfo//''​ : The address of the key information structure to set. 
-==== Return Value ==== 
-If successfully done, ''​BS_SDK_SUCCESS''​ will be returned. \\ 
-If there is an error, the corresponding error code will be returned. 
-==== See Also ==== 
-[[BS2_GetCredentialKeyInfo]]\\ [[BS2_RemoveCredentialKeyInfo]]