mynewt-mcumgr icon indicating copy to clipboard operation
mynewt-mcumgr copied to clipboard

mcumgr transfer finished notification ?

Open ExtremeGTX opened this issue 3 years ago • 3 comments

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.

ExtremeGTX avatar Aug 19 '21 09:08 ExtremeGTX

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

de-nordic avatar Aug 19 '21 10:08 de-nordic

Unfortunately they do not allow to pass reason, for example why dfu stopped, etc.

de-nordic avatar Aug 19 '21 10:08 de-nordic

But that's only for image upload, not for file transfer or OS commands for example

ExtremeGTX avatar Aug 19 '21 11:08 ExtremeGTX