|
|
|
@ -147,16 +147,16 @@ public abstract class AbstractLwM2MIntegrationTest extends AbstractTransportInte |
|
|
|
" \"telemetry\": [],\n" + |
|
|
|
" \"attributeLwm2m\": {}\n" + |
|
|
|
" }"; |
|
|
|
public static String OBSERVE_ATTRIBUTES_WITH_PARAMS = |
|
|
|
public static String TELEMETRY_WITHOUT_OBSERVE = |
|
|
|
" {\n" + |
|
|
|
" \"keyName\": {\n" + |
|
|
|
" \"/3_1.2/0/9\": \"batteryLevel\"\n" + |
|
|
|
" },\n" + |
|
|
|
" \"observe\": [],\n" + |
|
|
|
" \"attribute\": [\n" + |
|
|
|
" \"/3_1.2/0/9\"\n" + |
|
|
|
" ],\n" + |
|
|
|
" \"telemetry\": [\n" + |
|
|
|
" \"/3_1.2/0/9\"\n" + |
|
|
|
" ],\n" + |
|
|
|
" \"attributeLwm2m\": {}\n" + |
|
|
|
" }"; |
|
|
|
@ -249,7 +249,7 @@ public abstract class AbstractLwM2MIntegrationTest extends AbstractTransportInte |
|
|
|
LwM2MDeviceCredentials deviceCredentials, |
|
|
|
String endpoint, |
|
|
|
boolean queueMode) throws Exception { |
|
|
|
Lwm2mDeviceProfileTransportConfiguration transportConfiguration = getTransportConfiguration(OBSERVE_ATTRIBUTES_WITH_PARAMS, getBootstrapServerCredentialsNoSec(NONE)); |
|
|
|
Lwm2mDeviceProfileTransportConfiguration transportConfiguration = getTransportConfiguration(TELEMETRY_WITHOUT_OBSERVE, getBootstrapServerCredentialsNoSec(NONE)); |
|
|
|
DeviceProfile deviceProfile = createLwm2mDeviceProfile("profileFor" + endpoint, transportConfiguration); |
|
|
|
Device device = createLwm2mDevice(deviceCredentials, endpoint, deviceProfile.getId()); |
|
|
|
|
|
|
|
|