Accept Firmware Upgarde via callback registration.

Hi,

I am currently using "mgmt_callback_register() " to subscribe to MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK event to prevent firmware update in some cases by returning MGMT_ERR_EACCESSDENIED.

This works fine for prventing new fw images to be sent and therefore terminates dfu process. I noticed that if you want to revert to the previous version then image is not send as already exist inside flash. In this case app does not receive any callback and dfu process can't be terminated. 
Is there any other event to which app can subscibe before actual dfu process is started?
Thanks,
Simon
Parents Reply Children
Related