Hi,
As a quick hack, you can remove the static keyword from SetConfigHandler in both the declaration and the implementation in file msghandler.c, and add uint32_t SetConfigHandler(uint8_t msgId, int len, const uint8_t* pPayload); on the line before using it in maintlogger.c
A bit more clean would be to present the message tp the msg module, who will dispatch it to the correct handler. Have a look at how it is done in GenerateNextAutomaticCommand.
Last, your changes will unconditionally start a new monitoring session after each restart. You may want to add a check on whether a session is already ongoing Memory_IsMonitoring(), or whether samples have already been stored in memory Storage_GetCount().
Kind regards,
Dries.