添加打印
This commit is contained in:
parent
2672620780
commit
40c8521a8b
@ -294,6 +294,8 @@ static void handle_serial_at_data(const std::string& data)
|
|||||||
line.erase(0, line.find_first_not_of(" \t\r\n"));
|
line.erase(0, line.find_first_not_of(" \t\r\n"));
|
||||||
line.erase(line.find_last_not_of(" \t\r\n") + 1);
|
line.erase(line.find_last_not_of(" \t\r\n") + 1);
|
||||||
|
|
||||||
|
LOG_INFO("[serial_at][RAW] " + line);
|
||||||
|
|
||||||
// IMEI:14~17 位纯数字
|
// IMEI:14~17 位纯数字
|
||||||
if (line.size() >= 14 && line.size() <= 17 && std::all_of(line.begin(), line.end(), ::isdigit))
|
if (line.size() >= 14 && line.size() <= 17 && std::all_of(line.begin(), line.end(), ::isdigit))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user