refactor(message_handler): 重构代码以优化程序结构和可读性
- 调整了 TCP 客户端和服务的启动顺序
- 移除了未使用的 include 语句
- 将 handle_data 函数移到了 serial_port_wrapper.cpp 文件的开头
- 删除了未使用的 write_to_port 和 start_periodic_send 函数
-简化了 read_from_port 函数的实现
1 parent c9eab0b commit 6aeb9f69670f249cd7c3306d40e329405ea6c799
pengxianhong authored on 6 Mar
Showing 3 changed files
View
src/message_handler.cpp
View
src/serial_port_wrapper.cpp
View
src/serial_port_wrapper.hpp