Browse Source

update

master
zhaohe 2 years ago
parent
commit
253188785a
  1. 2
      README.md
  2. 8
      demo/uart/test_uart232_1.cpp
  3. 8
      demo/uart/test_uart232_2.cpp
  4. 7
      demo/uart/test_uart485.cpp
  5. 7
      demo/uart/test_usbuart.cpp

2
README.md

@ -10,7 +10,7 @@
ssh-copy-id iflytop@板子IP
编译:
./build.sh
./sh/build.sh
部署:
./sh/deploy.sh username ip

8
demo/uart/test_uart232_1.cpp

@ -21,7 +21,13 @@ using namespace iflytop;
int main(int argc, char const* argv[]) {
Uart uart;
uart.open(UART_NAME, "115200");
int ret = uart.open(UART_NAME, "115200");
if (ret != 0) {
perror("open uart error");
exit(1);
}
thread th([&]() {
//

8
demo/uart/test_uart232_2.cpp

@ -21,7 +21,13 @@ using namespace iflytop;
int main(int argc, char const* argv[]) {
Uart uart;
uart.open(UART_NAME, "115200");
int ret = uart.open(UART_NAME, "115200");
if (ret != 0) {
perror("open uart error");
exit(1);
}
thread th([&]() {
//

7
demo/uart/test_uart485.cpp

@ -21,7 +21,12 @@ using namespace iflytop;
int main(int argc, char const* argv[]) {
Uart uart;
uart.open(UART_NAME, "115200");
int ret = uart.open(UART_NAME, "115200");
if (ret != 0) {
perror("open uart error");
exit(1);
}
thread th([&]() {
//

7
demo/uart/test_usbuart.cpp

@ -21,7 +21,12 @@ using namespace iflytop;
int main(int argc, char const* argv[]) {
Uart uart;
uart.open(UART_NAME, "115200");
int ret = uart.open(UART_NAME, "115200");
if (ret != 0) {
perror("open uart error");
exit(1);
}
thread th([&]() {
//

Loading…
Cancel
Save