poll
Poll for required image (asynchronous). This should be called after the install was started either by sending the Envelope without deferred install, or by calling beginDeferredInstall.
SUIT command sequence has the ability of conditional execution of directives, i.e. based on the digest of installed image. That opens scenario where SUIT candidate envelope contains only SUIT manifests, images (those required to be updated) are fetched by the device only if it is necessary. In that case, the device informs the SMP client that specific image is required (and this is what this command implements), and then the SMP client delivers requested image in chunks. Due to the fact that SMP is designed in clients-server pattern and lack of server-sent notifications, implementation bases on polling.
After sending the Envelope, the client should periodically poll the device to check if an image is required. Use {uploadResource} to deliver the image.
Parameters
the asynchronous callback.
Poll for required image (synchronous). This should be called after the install was started either by sending the Envelope without deferred install, or by calling beginDeferredInstall.
SUIT command sequence has the ability of conditional execution of directives, i.e. based on the digest of installed image. That opens scenario where SUIT candidate envelope contains only SUIT manifests, images (those required to be updated) are fetched by the device only if it is necessary. In that case, the device informs the SMP client that specific image is required (and this is what this command implements), and then the SMP client delivers requested image in chunks. Due to the fact that SMP is designed in clients-server pattern and lack of server-sent notifications, implementation bases on polling.
After sending the Envelope, the client should periodically poll the device to check if an image is required. Use {uploadResource} to deliver the image.
Return
The response.
Throws
Transport error. See cause.