Skip to main content


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: 201
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:Do Kura support Android and run on Android phone?
Next Topic:Kura and Jersey
Goto Forum:
  


Current Time: Sun Sep 23 10:10:45 GMT 2018

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

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

Back to the top