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: Fri Apr 19 01:10:20 GMT 2024

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

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

Back to the top