Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Help: how to send byte stream in the serial transfer program?
Help: how to send byte stream in the serial transfer program? [message #1767612] Fri, 07 July 2017 14:58 Go to next message
sun min is currently offline sun minFriend
Messages: 3
Registered: March 2017
Junior Member
I implemented the SerialExample in the kura development documentation, but I found that when sending a byte stream, the program need to add "/ r / n" at the end to send it successfully,sb.append("\r\n"); , if you do not add "/ r / n ", the program will always stay waiting. How can i send byte stream without "/ r / n" ?
Re: Help: how to send byte stream in the serial transfer program? [message #1767613 is a reply to message #1767612] Fri, 07 July 2017 15:11 Go to previous message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 195
Registered: July 2009
Location: Toulouse, France
Senior Member

If you call flush() on the output stream, it should do exactly what you want and not wait for \r\n for effectively sending your bytes on the wire.

Previous Topic:Can this portable Java Device I/O library be of any assistance?
Next Topic:How can Greehouse example use DHT11 to read temperature and humidity data?
Goto Forum:
  


Current Time: Wed Jul 12 03:26:27 GMT 2017

Powered by FUDForum. Page generated in 0.02275 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software