Is it possible to disable CLI commands from the NCS CLI sample?

Hi,

I am using the NCS Thread CLI sample as the base of my project and I was wondering if it's possible to disable the cli command functionalities of this project to save resources. I am planning to develop firmware to flash onto a custom module and use API calls to develop its behavior. 

As far as I see, there's no config in prj.conf to directly disable it. Any help is appreciated.

Thanks,

Glen

Parents
  • Hi,

    The Kconfig configuration needed for the CLI is CONFIG_OPENTHREAD_SHELL. Please note that there is likely to be code in the sample which relies on the existence of the shell (CLI), and there may be changes needed in the application to make it work if you disable the shell. Therefore I highly recommend if you want a non-CLI application to start development from a non-CLI sample. That way you do not have to figure out which parts of the application are CLI related and not, in order to strip the CLI parts away from the rest of the application. You can still have a look at the CLI implementation and use it for reference, to see what underlying API calls are used for the given functionality. Just not build your non-CLI application off of the CLI sample.

    Regards,
    Terje

Reply
  • Hi,

    The Kconfig configuration needed for the CLI is CONFIG_OPENTHREAD_SHELL. Please note that there is likely to be code in the sample which relies on the existence of the shell (CLI), and there may be changes needed in the application to make it work if you disable the shell. Therefore I highly recommend if you want a non-CLI application to start development from a non-CLI sample. That way you do not have to figure out which parts of the application are CLI related and not, in order to strip the CLI parts away from the rest of the application. You can still have a look at the CLI implementation and use it for reference, to see what underlying API calls are used for the given functionality. Just not build your non-CLI application off of the CLI sample.

    Regards,
    Terje

Children
Related