feat(shell): Add commands to configure Modbus
- Implement a new 'modbus' command in the shell. - Add sub-commands 'set_baud', 'set_id', and 'show'. - Add validation for baud rate and slave ID inputs. - The new parameters are applied to the Modbus server at runtime, allowing for live reconfiguration of the communication settings. - The shell backend is set to RTT.
This commit is contained in:
@@ -9,6 +9,10 @@ CONFIG_UART_CONSOLE=n
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
|
||||
# Enable Shell
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_SHELL_BACKEND_RTT=y
|
||||
|
||||
# Config modbus
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_MODBUS=y
|
||||
|
||||
Reference in New Issue
Block a user