#字符类-std::stringstream
- 用法举例
如下所示
std::stringstream cmd;
cmd << "COM THISPORT " << baudrate << "\r\n";
std::stringstream baud_msg;
baud_msg << "Changing receiver baud rate to " << baudrate;
log_info_(baud_msg.str());
try {
serial_port_->write(cmd.str());