Initializes the Shell service.
- Parameters
-
- Returns
- This function returns:
- Shell service descriptor if no error occurs.
0 if an error occurs.
- See also
- fnet_shell_release()
This function executes the initialization of the shell service according to settings pointed to by params parameters. It allocates all resources needed, and registers the shell service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the Shell service in background.
The shell service runs on asigned serial stream, executes parsing of the user-entered commands, and calls user-defined command functions, if the parsing was successful.