Package com.avsystem.anjay
Class Anjay.Lwm2mVersionConfig
- java.lang.Object
-
- com.avsystem.anjay.Anjay.Lwm2mVersionConfig
-
- Enclosing class:
- Anjay
public static final class Anjay.Lwm2mVersionConfig extends java.lang.ObjectConfiguration of LwM2M protocol versions to use when attempting to register to LwM2M servers.- Restricting the set of supported versions may speed up the Register operation, as less versions will be attempted for registration.
- If
minimumVersionis set to a higher value thanmaximumVersion,Anjay(com.avsystem.anjay.Anjay.Configuration)will fail. - If
minimumVersionis set to a version higher than LwM2M 1.0,Anjay.Configuration.disableLegacyServerInitiatedBootstrapwill be effectively implied even if that field is set tofalse.
-
-
Field Summary
Fields Modifier and Type Field Description Anjay.Lwm2mVersionmaximumVersionThe highest version to attempt using when registering to LwM2M Servers.Anjay.Lwm2mVersionminimumVersionThe lowest version to attempt using when registering to LwM2M Servers.
-
Constructor Summary
Constructors Constructor Description Lwm2mVersionConfig(Anjay.Lwm2mVersion minimum, Anjay.Lwm2mVersion maximum)Constructor for LwM2M version configuration.
-
-
-
Field Detail
-
minimumVersion
public final Anjay.Lwm2mVersion minimumVersion
The lowest version to attempt using when registering to LwM2M Servers.
-
maximumVersion
public final Anjay.Lwm2mVersion maximumVersion
The highest version to attempt using when registering to LwM2M Servers. This is also the version number sent in reponse to Bootstrap Discover.
-
-
Constructor Detail
-
Lwm2mVersionConfig
public Lwm2mVersionConfig(Anjay.Lwm2mVersion minimum, Anjay.Lwm2mVersion maximum)
Constructor for LwM2M version configuration.- Parameters:
minimum- Minimum LwM2M version to use.maximum- Maximum LwM2M version to use.
-
-