Function anjay_advanced_fw_update_pull_reconnect

Function Documentation

int anjay_advanced_fw_update_pull_reconnect(anjay_t *anjay)

Reconnects any ongoing PULL-mode downloads in the Advanced Firmware Update module. Additionally, if PULL-mode downloads are suspended (see anjay_advanced_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.