Function anjay_sw_mgmt_pull_reconnect

Function Documentation

int anjay_sw_mgmt_pull_reconnect(anjay_t *anjay)

Reconnects any ongoing PULL-mode downloads in the Software Management module. Which could be disconnected due to connection loss or deliberate suspend. In the latter case, when PULL-mode downloads are suspended (see anjay_sw_mgmt_pull_suspend), resumes normal operation.

If an ongoing PULL-mode download exists, this will call anjay_download_reconnect internally, so you may want to reference the documentation of that function for details.

Parameters:

anjay – Anjay object to operate on.

Returns:

0 on success; -1 if anjay does not have the Software Management object installed or the latest non-zero error code returned by anjay_download_reconnect .