Browse Source

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

pull/5857/head
Sergey Tarnavskiy 5 years ago
committed by Vladyslav
parent
commit
b84ab58d7b
  1. 3
      ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-config-server.component.ts
  2. 1
      ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.ts

3
ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-config-server.component.ts

@ -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$)

1
ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.ts

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

Loading…
Cancel
Save