Commit a0c504ade6ff4871fca8155f9374e718bfb1ef7e
Committed by
Andrew Shvayka
1 parent
eb9b0f84
UI: LwM2M device profile add new setting compositeOperationsSupport
Showing
5 changed files
with
15 additions
and
4 deletions
... | ... | @@ -168,6 +168,8 @@ |
168 | 168 | </mat-select> |
169 | 169 | </mat-form-field> |
170 | 170 | </fieldset> |
171 | + <mat-slide-toggle class="mat-slider" | |
172 | + formControlName="compositeOperationsSupport">{{ 'device-profile.lwm2m.composite-operations-support' | translate }}</mat-slide-toggle> | |
171 | 173 | <!-- <mat-accordion multi="true">--> |
172 | 174 | <!-- <div *ngIf="false">--> |
173 | 175 | <!-- <mat-expansion-panel>--> | ... | ... |
... | ... | @@ -117,7 +117,8 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro |
117 | 117 | swUpdateStrategy: [1, []], |
118 | 118 | fwUpdateResource: [{value: '', disabled: true}, []], |
119 | 119 | swUpdateResource: [{value: '', disabled: true}, []], |
120 | - powerMode: [null, Validators.required] | |
120 | + powerMode: [PowerMode.DRX, Validators.required], | |
121 | + compositeOperationsSupport: [false] | |
121 | 122 | }) |
122 | 123 | }); |
123 | 124 | this.lwm2mDeviceConfigFormGroup = this.fb.group({ |
... | ... | @@ -258,7 +259,8 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro |
258 | 259 | swUpdateStrategy: this.configurationValue.clientLwM2mSettings.swUpdateStrategy || 1, |
259 | 260 | fwUpdateResource: fwResource, |
260 | 261 | swUpdateResource: swResource, |
261 | - powerMode: this.configurationValue.clientLwM2mSettings.powerMode | |
262 | + powerMode: this.configurationValue.clientLwM2mSettings.powerMode || PowerMode.DRX, | |
263 | + compositeOperationsSupport: this.configurationValue.clientLwM2mSettings.compositeOperationsSupport || false | |
262 | 264 | } |
263 | 265 | }, |
264 | 266 | {emitEvent: false}); | ... | ... |
... | ... | @@ -175,6 +175,7 @@ export interface ClientLwM2mSettings { |
175 | 175 | fwUpdateResource: string; |
176 | 176 | swUpdateResource: string; |
177 | 177 | powerMode: PowerMode; |
178 | + compositeOperationsSupport: boolean; | |
178 | 179 | } |
179 | 180 | |
180 | 181 | export interface ObservableAttributes { |
... | ... | @@ -231,7 +232,8 @@ export function getDefaultProfileClientLwM2mSettingsConfig(): ClientLwM2mSetting |
231 | 232 | swUpdateStrategy: 1, |
232 | 233 | fwUpdateResource: DEFAULT_FW_UPDATE_RESOURCE, |
233 | 234 | swUpdateResource: DEFAULT_SW_UPDATE_RESOURCE, |
234 | - powerMode: PowerMode.DRX | |
235 | + powerMode: PowerMode.DRX, | |
236 | + compositeOperationsSupport: false | |
235 | 237 | }; |
236 | 238 | } |
237 | 239 | ... | ... |
... | ... | @@ -1328,7 +1328,8 @@ |
1328 | 1328 | "step": "Step", |
1329 | 1329 | "min-evaluation-period": "Minimum evaluation period", |
1330 | 1330 | "max-evaluation-period": "Maximum evaluation period" |
1331 | - } | |
1331 | + }, | |
1332 | + "composite-operations-support": "Supports composite Read/Write/Observe operations" | |
1332 | 1333 | }, |
1333 | 1334 | "snmp": { |
1334 | 1335 | "add-communication-config": "Add communication config", | ... | ... |