mynewt-mcumgr
mynewt-mcumgr copied to clipboard
mcumgr transfer finished notification ?
Is it possible to get a notification callback
after mcumgr transfer completed ?
An example use case: in Zephyr when SMP_SHELL
is used, I want to disable the logs (because it will intervene with mcumgr packets) till the transfer ends then re-enable the logs again after the transfer ends.
There are callbacks that can be registered for various stages of upload: https://github.com/apache/mynewt-mcumgr/blob/4fa869142f16e00d42415bc6dbcb7f1f92ba4abd/cmd/img_mgmt/include/img_mgmt/img_mgmt.h#L237-L256
Unfortunately they do not allow to pass reason, for example why dfu stopped, etc.
But that's only for image upload, not for file transfer or OS commands for example