![]() ![]() The Arduino is programmed to do a serial echo of whatever is sent to it, for testing purposes. Port_.set_option(asio::serial_port_base::baud_rate(baudios)) *iosvc gets passed by reference, port_ is a member variable of type asio::serial_port, The following code is run in the client application, which runs both on my Windows 10 Student Edition x86_64 machine, and on old 32 bit Win XP machines that communicate with the weighing machines: /*this is inside a constructor*/ It works with my Arduino Uno and other hardware as well (industrial weighing machines), but I only specify the port and baud rate. ![]() ![]() I've made a small interface using the asio C++ library to open serial ports and do I/O from/to them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |