Enum anjay_server_conn_status
Defined in File core.h
Enum Documentation
-
enum anjay_server_conn_status
This enum represents the possible states of a server connection.
Values:
-
enumerator ANJAY_SERV_CONN_STATUS_INVALID
Invalid state. It is only returned if a given server connection object does not exist, or there was an error in determining its state.
-
enumerator ANJAY_SERV_CONN_STATUS_ERROR
Generic state for any errors for which more specific states are not defined. For a regular LwM2M Server, this means that the primary connection is invalid or de-register/update operation has failed. For a LwM2M Bootstrap Server, it means that the bootstrap process failed.
-
enumerator ANJAY_SERV_CONN_STATUS_INITIAL
This status means that the server connection object has been just created as a result of the Security and Server object instances having been previously added to the data model. A connection attempt is scheduled to be made during subsequent calls to anjay_sched_run.
-
enumerator ANJAY_SERV_CONN_STATUS_CONNECTING
This status is reported just before attempting the connection procedure, which may include binding the socket to a local port, performing DNS resolution, connecting the socket, and performing a (D)TLS handshake.
-
enumerator ANJAY_SERV_CONN_STATUS_BOOTSTRAPPING
This status means that the bootstrap process is in progress. It only applies to LwM2M Bootstrap Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_BOOTSTRAPPED
This status means that the bootstrap process has completed successfully. It only applies to LwM2M Bootstrap Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_REGISTERING
This status means that the register operation is in progress. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_REGISTERED
This status means that the Anjay is registered to the LwM2M Server. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_REG_FAILURE
This status means that the last register operation has failed due to no response, a non-success CoAP response was received, or network problems. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_DEREGISTERING
This status means that the de-register operation is in progress. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_DEREGISTERED
This status means that the the library has de-registered with the LwM2M Server, either explicitly by successfully performing the De-register operation, or implicitly by discarding the registration state (which happens when the server is disabled while offline). It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_SUSPENDING
This status means that the /1/x/4 resource has been executed and Anjay will try to suspend the LwM2M Server. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_SUSPENDED
This status means that the suspend process has completed successfully. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_REREGISTERING
This status means that the last update operation has failed due to either no response or a non-success CoAP response was received. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_UPDATING
This status means that the update operation is in progress. It only applies to regular LwM2M Servers.
-
enumerator ANJAY_SERV_CONN_STATUS_INVALID