LwM2M transport. Added serverCertificate value for X509-securityMode in Bootstrap-config.

This commit is contained in:
Sergey Tarnavskiy 2022-01-12 12:56:02 +02:00 committed by Vladyslav
parent 1b488781d5
commit b84ab58d7b
2 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,9 @@ export class Lwm2mDeviceConfigServerComponent implements OnInit, ControlValueAcc
this.changeSecurityHostPortFields(serverSecurityConfig);
}
this.serverFormGroup.patchValue(serverSecurityConfig, {emitEvent: false});
if (this.currentSecurityMode === Lwm2mSecurityType.X509) {
this.serverFormGroup.get('serverPublicKey').patchValue(serverSecurityConfig.serverCertificate, {emitEvent: false});
}
});
this.serverFormGroup.valueChanges.pipe(
takeUntil(this.destroy$)

View File

@ -129,6 +129,7 @@ export interface ServerSecurityConfig {
securityHost?: string;
securityPort?: number;
serverPublicKey?: string;
serverCertificate?: string;
clientHoldOffTime?: number;
shortServerId?: number;
bootstrapServerAccountTimeout: number;