Function anjay_transport_exit_offline

Function Documentation

int anjay_transport_exit_offline(anjay_t *anjay, anjay_transport_set_t transport_set)

Puts all the transports specified by transport_set back into online mode, if any of them were previously put into offline mode using anjay_transport_enter_offline.

Transports that are unavailable due to compile-time or runtime configuration are ignored.

During subsequent calls to anjay_sched_run, new connections to all LwM2M servers disconnected due to offline mode will be attempted, and Register or Registration Update messages will be sent as appropriate. Downloads paused due to offline mode will be resumed as well.

Parameters:
  • anjay – Anjay object to operate on.

  • transport_set – Set of transports to put into online mode.

Returns:

0 on success, a negative value in case of error.