添加数据位, 奇偶校验, 停止位设置

This commit is contained in:
JIe
2024-10-12 14:46:49 +08:00
parent 517c4699d4
commit 6ec5ffd22f
3 changed files with 41 additions and 19 deletions

13
main.cc
View File

@@ -25,16 +25,6 @@ std::vector<T> split(T str, T d) {
});
return std::vector<T>(v.begin(), v.end());
}
int main() {
Serial ser;
ser.OpenDevice("COM11", 115200);
ser.SetLogCallBack(PrintLog);
ser.GetAtUntilRepeat<5>("AT", "OK");
return 0;
}
/*
int main(int argc, char **const argv) {
Serial serial;
auto ports = serial::GetUsbPorts();
@@ -77,5 +67,4 @@ int main(int argc, char **const argv) {
}
}
return 0;
}
*/
}