I suppose there are lots of ways to do that by closing and redirecting NSH's standard I/O.
But the simplest thing that comes to mind is just to kill the NSH task, run modbus, and restart NSH when you are finished with modbus. On Thu, Oct 20, 2022 at 6:05 PM Daniel Pereira Carvalho <daniel...@gmail.com> wrote: > Hi guys, > > I am writing a program for a board that has only one serial port available, > the one used by NSH. My application needs to use this port for MODBUS so, > my application needs to take control of the serial port and give it back to > NSH when execution is done. > > Is this possible? If yes, how can I do this? > > Thanks > > Daniel Pereira de Carvalho >