- res = AddTmpPskWithPIN(&otmCtx->selectedDeviceInfo->doxm->deviceID,
- SYMMETRIC_PAIR_WISE_KEY,
- (char*)pinData, OXM_RANDOM_PIN_SIZE,
- 1, &deviceUUID, &otmCtx->subIdForPinOxm);
- if(res != OC_STACK_OK)
- {
- OC_LOG_V(ERROR, TAG, "Failed to save the temporal PSK : %d", res);
- }
+ //Set the device id to derive temporal PSK
+ SetUuidForRandomPinOxm(&(otmCtx->selectedDeviceInfo->doxm->deviceID));