Function anjay_fw_update_pull_reconnect

Function Documentation

int anjay_fw_update_pull_reconnect(anjay_t *anjay)

Reconnects any ongoing PULL-mode downloads in the Firmware Update module. Which could be disconnected due to connection loss or deliberate suspend. In the latter case, when PULL-mode downloads are suspended (see anjay_fw_update_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 for success; -1 if anjay does not have the Firmware Update object installed or if the call to anjay_download_reconnect fails.