Once again a nice example.
On line 34 just change:
if (not serialPort.is_open())
to:
if (!serialPort.is_open())
The CMakeLists.txt file I posted in your telent client thread also
works here by changing two lines, line 1 the project name and line 92
the source file.
These are good convincing demonstrations of the utulity of asio!
Thanks
Andrew
On Tue, Oct 7, 2008 at 12:27 PM, Jeff Gray
A couple of weeks ago I posted a simple asynchronous demonstration of a telnet client using boost asio TCP network code.
I have changed this code to turn it into a simple serial terminal application using the serial port support in the new version of boost asio.
It required no changes at all the the read or write code. I just altered the initialization to use a serial port instead of a socket.
Note that this is not intended to show how a fully functional application would work. There are plenty of areas that are not handled in this code. But it shows the idea and it's easy to build on this once you've got it working.
Hope this helps someone else get started... Jeff
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.acfr.usyd.edu.au/ ___________________________________________