LwM2M transport. Added serverCertificate value for X509-securityMode in Bootstrap-config.
This commit is contained in:
parent
1b488781d5
commit
b84ab58d7b
@ -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$)
|
||||
|
||||
@ -129,6 +129,7 @@ export interface ServerSecurityConfig {
|
||||
securityHost?: string;
|
||||
securityPort?: number;
|
||||
serverPublicKey?: string;
|
||||
serverCertificate?: string;
|
||||
clientHoldOffTime?: number;
|
||||
shortServerId?: number;
|
||||
bootstrapServerAccountTimeout: number;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user