diff --git a/common/data/src/main/java/org/thingsboard/server/common/data/device/data/PowerMode.java b/common/data/src/main/java/org/thingsboard/server/common/data/device/data/PowerMode.java
new file mode 100644
index 0000000000..d7323e654a
--- /dev/null
+++ b/common/data/src/main/java/org/thingsboard/server/common/data/device/data/PowerMode.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright © 2016-2021 The Thingsboard Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.thingsboard.server.common.data.device.data;
+
+public enum PowerMode {
+ PSM, DRX, E_DRX
+}
diff --git a/common/data/src/main/java/org/thingsboard/server/common/data/device/data/lwm2m/OtherConfiguration.java b/common/data/src/main/java/org/thingsboard/server/common/data/device/data/lwm2m/OtherConfiguration.java
index 2bfef74391..0e0d09464a 100644
--- a/common/data/src/main/java/org/thingsboard/server/common/data/device/data/lwm2m/OtherConfiguration.java
+++ b/common/data/src/main/java/org/thingsboard/server/common/data/device/data/lwm2m/OtherConfiguration.java
@@ -16,12 +16,16 @@
package org.thingsboard.server.common.data.device.data.lwm2m;
import lombok.Data;
+import org.thingsboard.server.common.data.device.data.PowerMode;
@Data
public class OtherConfiguration {
private Integer fwUpdateStrategy;
+ private String fwUpdateResource;
private Integer swUpdateStrategy;
+ private String swUpdateResource;
private Integer clientOnlyObserveAfterConnect;
+ private PowerMode powerMode;
}
diff --git a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/DefaultLwM2mTransportService.java b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/DefaultLwM2mTransportService.java
index 97ab82f802..f5554f15d2 100644
--- a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/DefaultLwM2mTransportService.java
+++ b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/DefaultLwM2mTransportService.java
@@ -64,7 +64,7 @@ import static org.eclipse.californium.scandium.dtls.cipher.CipherSuite.TLS_ECDHE
import static org.eclipse.californium.scandium.dtls.cipher.CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA256;
import static org.eclipse.californium.scandium.dtls.cipher.CipherSuite.TLS_PSK_WITH_AES_128_CCM_8;
import static org.thingsboard.server.transport.lwm2m.server.LwM2mNetworkConfig.getCoapConfig;
-import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FIRMWARE_UPDATE_COAP_RECOURSE;
+import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FIRMWARE_UPDATE_COAP_RESOURCE;
@Slf4j
@Component
@@ -104,7 +104,7 @@ public class DefaultLwM2mTransportService implements LwM2MTransportService {
*/
- LwM2mTransportCoapResource otaCoapResource = new LwM2mTransportCoapResource(handler, FIRMWARE_UPDATE_COAP_RECOURSE);
+ LwM2mTransportCoapResource otaCoapResource = new LwM2mTransportCoapResource(handler, FIRMWARE_UPDATE_COAP_RESOURCE);
this.server.coap().getServer().add(otaCoapResource);
this.startLhServer();
this.context.setServer(server);
diff --git a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportCoapResource.java b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportCoapResource.java
index ff86ee9bd9..4f61685503 100644
--- a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportCoapResource.java
+++ b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportCoapResource.java
@@ -32,8 +32,8 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicInteger;
-import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FIRMWARE_UPDATE_COAP_RECOURSE;
-import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.SOFTWARE_UPDATE_COAP_RECOURSE;
+import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FIRMWARE_UPDATE_COAP_RESOURCE;
+import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.SOFTWARE_UPDATE_COAP_RESOURCE;
@Slf4j
public class LwM2mTransportCoapResource extends AbstractLwM2mTransportResource {
@@ -72,8 +72,8 @@ public class LwM2mTransportCoapResource extends AbstractLwM2mTransportResource {
protected void processHandleGet(CoapExchange exchange) {
log.warn("90) processHandleGet [{}]", exchange);
if (exchange.getRequestOptions().getUriPath().size() >= 2 &&
- (FIRMWARE_UPDATE_COAP_RECOURSE.equals(exchange.getRequestOptions().getUriPath().get(exchange.getRequestOptions().getUriPath().size()-2)) ||
- SOFTWARE_UPDATE_COAP_RECOURSE.equals(exchange.getRequestOptions().getUriPath().get(exchange.getRequestOptions().getUriPath().size()-2)))) {
+ (FIRMWARE_UPDATE_COAP_RESOURCE.equals(exchange.getRequestOptions().getUriPath().get(exchange.getRequestOptions().getUriPath().size()-2)) ||
+ SOFTWARE_UPDATE_COAP_RESOURCE.equals(exchange.getRequestOptions().getUriPath().get(exchange.getRequestOptions().getUriPath().size()-2)))) {
this.sendOtaData(exchange);
}
}
diff --git a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportUtil.java b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportUtil.java
index 0d8b96e74b..8ec2a9bd09 100644
--- a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportUtil.java
+++ b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportUtil.java
@@ -137,7 +137,7 @@ public class LwM2mTransportUtil {
// Firmware
- public static final String FIRMWARE_UPDATE_COAP_RECOURSE = "firmwareUpdateCoapRecourse";
+ public static final String FIRMWARE_UPDATE_COAP_RESOURCE = "firmwareUpdateCoapResource";
public static final String FW_UPDATE = "Firmware update";
public static final Integer FW_5_ID = 5;
public static final Integer FW_19_ID = 19;
@@ -169,7 +169,7 @@ public class LwM2mTransportUtil {
public static final String FW_UPDATE_ID = "/5/0/2";
// Software
- public static final String SOFTWARE_UPDATE_COAP_RECOURSE = "softwareUpdateCoapRecourse";
+ public static final String SOFTWARE_UPDATE_COAP_RESOURCE = "softwareUpdateCoapResource";
public static final String SW_UPDATE = "Software update";
public static final Integer SW_ID = 9;
// Package W
diff --git a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/client/LwM2mFwSwUpdate.java b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/client/LwM2mFwSwUpdate.java
index b19fa4ac55..f7ee2cc470 100644
--- a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/client/LwM2mFwSwUpdate.java
+++ b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/client/LwM2mFwSwUpdate.java
@@ -49,7 +49,7 @@ import static org.thingsboard.server.common.data.ota.OtaPackageUpdateStatus.INIT
import static org.thingsboard.server.common.data.ota.OtaPackageUpdateStatus.UPDATED;
import static org.thingsboard.server.common.data.ota.OtaPackageUpdateStatus.UPDATING;
import static org.thingsboard.server.common.data.ota.OtaPackageUtil.getAttributeKey;
-import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FIRMWARE_UPDATE_COAP_RECOURSE;
+import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FIRMWARE_UPDATE_COAP_RESOURCE;
import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FW_3_VER_ID;
import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FW_5_VER_ID;
import static org.thingsboard.server.transport.lwm2m.server.LwM2mTransportUtil.FW_NAME_ID;
@@ -199,7 +199,7 @@ public class LwM2mFwSwUpdate {
request.sendWriteReplaceRequest(lwM2MClient, downlink, new TbLwM2MWriteResponseCallback(handler, lwM2MClient, targetIdVer));
} else if (LwM2mTransportUtil.LwM2MFirmwareUpdateStrategy.OBJ_5_TEMP_URL.code == this.updateStrategy) {
String apiFont = "coap://176.36.143.9:5685";
- String uri = apiFont + "/" + FIRMWARE_UPDATE_COAP_RECOURSE + "/" + this.currentId.toString();
+ String uri = apiFont + "/" + FIRMWARE_UPDATE_COAP_RESOURCE + "/" + this.currentId.toString();
log.warn("89) coapUri: [{}]", uri);
//TODO: user this.rpcRequest???
TbLwM2MWriteReplaceRequest downlink = TbLwM2MWriteReplaceRequest.builder().versionedId(targetIdVer).value(uri).timeout(handler.config.getTimeout()).build();
diff --git a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html
index 30b78393d3..75878c7078 100644
--- a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html
+++ b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html
@@ -126,10 +126,10 @@
- {{ 'device-profile.lwm2m.fw-update-recourse' | translate }}
-
-
- {{ 'device-profile.lwm2m.fw-update-recourse-required' | translate }}
+ {{ 'device-profile.lwm2m.fw-update-resource' | translate }}
+
+
+ {{ 'device-profile.lwm2m.fw-update-resource-required' | translate }}
@@ -143,13 +143,25 @@
- {{ 'device-profile.lwm2m.sw-update-recourse' | translate }}
-
-
- {{ 'device-profile.lwm2m.sw-update-recourse-required' | translate }}
+ {{ 'device-profile.lwm2m.sw-update-resource' | translate }}
+
+
+ {{ 'device-profile.lwm2m.sw-update-resource-required' | translate }}
+
@@ -160,9 +172,9 @@
-
+
-
+
diff --git a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.ts b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.ts
index faf94eccce..389a214d22 100644
--- a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.ts
+++ b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.ts
@@ -32,7 +32,7 @@ import {
ModelValue,
ObjectLwM2M,
OBSERVE,
- OBSERVE_ATTR_TELEMETRY,
+ OBSERVE_ATTR_TELEMETRY, powerMode, powerModeNames,
RESOURCES,
TELEMETRY
} from './lwm2m-profile-config.models';
@@ -72,6 +72,9 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
sortFunction: (key: string, value: object) => object;
isFwUpdateStrategy: boolean;
isSwUpdateStrategy: boolean;
+ powerModeLwM2MType = powerMode;
+ powerModeLwM2MTypes = Object.keys(powerMode);
+ powerModeLwM2MNamesMap = powerModeNames;
get required(): boolean {
return this.requiredValue;
@@ -97,11 +100,12 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
binding: [],
bootstrapServer: [null, Validators.required],
lwm2mServer: [null, Validators.required],
- clientStrategy: [1, []],
+ clientOnlyObserveAfterConnect: [1, []],
fwUpdateStrategy: [1, []],
swUpdateStrategy: [1, []],
- fwUpdateRecourse: [{value: '', disabled: true}, []],
- swUpdateRecourse: [{value: '', disabled: true}, []]
+ fwUpdateResource: [{value: '', disabled: true}, []],
+ swUpdateResource: [{value: '', disabled: true}, []],
+ powerMode: [null, Validators.required]
});
this.lwm2mDeviceConfigFormGroup = this.fb.group({
configurationJson: [null, Validators.required]
@@ -110,11 +114,11 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
takeUntil(this.destroy$)
).subscribe((fwStrategy) => {
if (fwStrategy === 2) {
- this.lwm2mDeviceProfileFormGroup.get('fwUpdateRecourse').enable({emitEvent: false});
- this.lwm2mDeviceProfileFormGroup.get('fwUpdateRecourse').patchValue(DEFAULT_FW_UPDATE_RESOURCE, {emitEvent: false});
+ this.lwm2mDeviceProfileFormGroup.get('fwUpdateResource').enable({emitEvent: false});
+ this.lwm2mDeviceProfileFormGroup.get('fwUpdateResource').patchValue(DEFAULT_FW_UPDATE_RESOURCE, {emitEvent: false});
this.isFwUpdateStrategy = true;
} else {
- this.lwm2mDeviceProfileFormGroup.get('fwUpdateRecourse').disable({emitEvent: false});
+ this.lwm2mDeviceProfileFormGroup.get('fwUpdateResource').disable({emitEvent: false});
this.isFwUpdateStrategy = false;
}
this.otaUpdateFwStrategyValidate(true);
@@ -123,12 +127,12 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
takeUntil(this.destroy$)
).subscribe((swStrategy) => {
if (swStrategy === 2) {
- this.lwm2mDeviceProfileFormGroup.get('swUpdateRecourse').enable({emitEvent: false});
- this.lwm2mDeviceProfileFormGroup.get('swUpdateRecourse').patchValue(DEFAULT_SW_UPDATE_RESOURCE, {emitEvent: false});
+ this.lwm2mDeviceProfileFormGroup.get('swUpdateResource').enable({emitEvent: false});
+ this.lwm2mDeviceProfileFormGroup.get('swUpdateResource').patchValue(DEFAULT_SW_UPDATE_RESOURCE, {emitEvent: false});
this.isSwUpdateStrategy = true;
} else {
this.isSwUpdateStrategy = false;
- this.lwm2mDeviceProfileFormGroup.get('swUpdateRecourse').disable({emitEvent: false});
+ this.lwm2mDeviceProfileFormGroup.get('swUpdateResource').disable({emitEvent: false});
}
this.otaUpdateSwStrategyValidate(true);
});
@@ -202,10 +206,10 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
}
private updateWriteValue = (value: ModelValue): void => {
- const fwResource = isDefinedAndNotNull(this.configurationValue.clientLwM2mSettings.fwUpdateRecourse) ?
- this.configurationValue.clientLwM2mSettings.fwUpdateRecourse : '';
- const swResource = isDefinedAndNotNull(this.configurationValue.clientLwM2mSettings.fwUpdateRecourse) ?
- this.configurationValue.clientLwM2mSettings.swUpdateRecourse : '';
+ const fwResource = isDefinedAndNotNull(this.configurationValue.clientLwM2mSettings.fwUpdateResource) ?
+ this.configurationValue.clientLwM2mSettings.fwUpdateResource : '';
+ const swResource = isDefinedAndNotNull(this.configurationValue.clientLwM2mSettings.fwUpdateResource) ?
+ this.configurationValue.clientLwM2mSettings.swUpdateResource : '';
this.lwm2mDeviceProfileFormGroup.patchValue({
objectIds: value,
observeAttrTelemetry: this.getObserveAttrTelemetryObjects(value.objectsList),
@@ -216,15 +220,16 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
binding: this.configurationValue.bootstrap.servers.binding,
bootstrapServer: this.configurationValue.bootstrap.bootstrapServer,
lwm2mServer: this.configurationValue.bootstrap.lwm2mServer,
- clientStrategy: this.configurationValue.clientLwM2mSettings.clientStrategy,
+ clientOnlyObserveAfterConnect: this.configurationValue.clientLwM2mSettings.clientOnlyObserveAfterConnect,
fwUpdateStrategy: this.configurationValue.clientLwM2mSettings.fwUpdateStrategy || 1,
swUpdateStrategy: this.configurationValue.clientLwM2mSettings.swUpdateStrategy || 1,
- fwUpdateRecourse: fwResource,
- swUpdateRecourse: swResource
+ fwUpdateResource: fwResource,
+ swUpdateResource: swResource,
+ powerMode: this.configurationValue.clientLwM2mSettings.powerMode
},
{emitEvent: false});
- this.configurationValue.clientLwM2mSettings.fwUpdateRecourse = fwResource;
- this.configurationValue.clientLwM2mSettings.swUpdateRecourse = swResource;
+ this.configurationValue.clientLwM2mSettings.fwUpdateResource = fwResource;
+ this.configurationValue.clientLwM2mSettings.swUpdateResource = swResource;
this.isFwUpdateStrategy = this.configurationValue.clientLwM2mSettings.fwUpdateStrategy === 2;
this.isSwUpdateStrategy = this.configurationValue.clientLwM2mSettings.swUpdateStrategy === 2;
this.otaUpdateSwStrategyValidate();
@@ -257,11 +262,12 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
bootstrapServers.defaultMinPeriod = config.defaultMinPeriod;
bootstrapServers.notifIfDisabled = config.notifIfDisabled;
bootstrapServers.binding = config.binding;
- this.configurationValue.clientLwM2mSettings.clientStrategy = config.clientStrategy;
+ this.configurationValue.clientLwM2mSettings.clientOnlyObserveAfterConnect = config.clientOnlyObserveAfterConnect;
this.configurationValue.clientLwM2mSettings.fwUpdateStrategy = config.fwUpdateStrategy;
this.configurationValue.clientLwM2mSettings.swUpdateStrategy = config.swUpdateStrategy;
- this.configurationValue.clientLwM2mSettings.fwUpdateRecourse = config.fwUpdateRecourse;
- this.configurationValue.clientLwM2mSettings.swUpdateRecourse = config.swUpdateRecourse;
+ this.configurationValue.clientLwM2mSettings.fwUpdateResource = config.fwUpdateResource;
+ this.configurationValue.clientLwM2mSettings.swUpdateResource = config.swUpdateResource;
+ this.configurationValue.clientLwM2mSettings.powerMode = config.powerMode;
this.upDateJsonAllConfig();
}
this.updateModel();
@@ -539,20 +545,20 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
private otaUpdateFwStrategyValidate(updated = false): void {
if (this.isFwUpdateStrategy) {
- this.lwm2mDeviceProfileFormGroup.get('fwUpdateRecourse').setValidators([Validators.required]);
+ this.lwm2mDeviceProfileFormGroup.get('fwUpdateResource').setValidators([Validators.required]);
} else {
- this.lwm2mDeviceProfileFormGroup.get('fwUpdateRecourse').clearValidators();
+ this.lwm2mDeviceProfileFormGroup.get('fwUpdateResource').clearValidators();
}
- this.lwm2mDeviceProfileFormGroup.get('fwUpdateRecourse').updateValueAndValidity({emitEvent: updated});
+ this.lwm2mDeviceProfileFormGroup.get('fwUpdateResource').updateValueAndValidity({emitEvent: updated});
}
private otaUpdateSwStrategyValidate(updated = false): void {
if (this.isSwUpdateStrategy) {
- this.lwm2mDeviceProfileFormGroup.get('swUpdateRecourse').setValidators([Validators.required]);
+ this.lwm2mDeviceProfileFormGroup.get('swUpdateResource').setValidators([Validators.required]);
} else {
- this.lwm2mDeviceProfileFormGroup.get('swUpdateRecourse').clearValidators();
+ this.lwm2mDeviceProfileFormGroup.get('swUpdateResource').clearValidators();
}
- this.lwm2mDeviceProfileFormGroup.get('swUpdateRecourse').updateValueAndValidity({emitEvent: updated});
+ this.lwm2mDeviceProfileFormGroup.get('swUpdateResource').updateValueAndValidity({emitEvent: updated});
}
}
diff --git a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.ts b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.ts
index 1f2d125d9f..fa9cbd4083 100644
--- a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.ts
+++ b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.ts
@@ -128,6 +128,20 @@ export const securityConfigModeNames = new Map(
]
);
+export enum powerMode {
+ PSM = 'PSM',
+ DRX = 'DRX',
+ E_DRX = 'E_DRX'
+}
+
+export const powerModeNames = new Map(
+ [
+ [powerMode.PSM, 'Power Saving Mode (PSM)'],
+ [powerMode.DRX, 'Discontinuous Reception (DRX)'],
+ [powerMode.E_DRX, 'Extended Discontinuous Reception (eDRX)']
+ ]
+);
+
export interface ModelValue {
objectIds: string[];
objectsList: ObjectLwM2M[];
@@ -168,11 +182,12 @@ export interface Lwm2mProfileConfigModels {
}
export interface ClientLwM2mSettings {
- clientStrategy: string;
+ clientOnlyObserveAfterConnect: string;
fwUpdateStrategy: number;
swUpdateStrategy: number;
- fwUpdateRecourse: string;
- swUpdateRecourse: string;
+ fwUpdateResource: string;
+ swUpdateResource: string;
+ powerMode: powerMode;
}
export interface ObservableAttributes {
@@ -240,11 +255,12 @@ export function getDefaultProfileConfig(hostname?: any): Lwm2mProfileConfigModel
function getDefaultProfileClientLwM2mSettingsConfig(): ClientLwM2mSettings {
return {
- clientStrategy: '1',
+ clientOnlyObserveAfterConnect: '1',
fwUpdateStrategy: 1,
swUpdateStrategy: 1,
- fwUpdateRecourse: DEFAULT_FW_UPDATE_RESOURCE,
- swUpdateRecourse: DEFAULT_SW_UPDATE_RESOURCE
+ fwUpdateResource: DEFAULT_FW_UPDATE_RESOURCE,
+ swUpdateResource: DEFAULT_SW_UPDATE_RESOURCE,
+ powerMode: powerMode.DRX
};
}
diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json
index cb09d84731..f50cec88cf 100644
--- a/ui-ngx/src/assets/locale/locale.constant-en_US.json
+++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json
@@ -1288,11 +1288,12 @@
"sw-update-strategy": "Software update strategy",
"sw-update-strategy-package": "Push binary file using Object 9 and Resource 2 (Package)",
"sw-update-strategy-package-uri": "Auto-generate unique CoAP URL to download the package and push software update using Object 9 and Resource 3 (Package URI)",
- "fw-update-recourse": "Firmware update CoAP recourse",
- "fw-update-recourse-required": "Firmware update CoAP recourse is required.",
- "sw-update-recourse": "Software update CoAP recourse",
- "sw-update-recourse-required": "Software update CoAP recourse is required.",
- "config-json-tab": "Json Config Profile Device"
+ "fw-update-resource": "Firmware update CoAP resource",
+ "fw-update-resource-required": "Firmware update CoAP resource is required.",
+ "sw-update-resource": "Software update CoAP resource",
+ "sw-update-resource-required": "Software update CoAP resource is required.",
+ "config-json-tab": "Json Config Profile Device",
+ "power-mode": "Power Mode"
}
},
"dialog": {