Receiving a string Serially
kt88seamp
Posts: 112
The fullduplexserial object provides a means to transmit a string. How do you receive the string on the other end?
How do you read in the "Some Text" on the other end?
Post Edited (kt88seamp) : 6/28/2010 12:09:53 AM GMT
FDSER.str(string("Some Text"))
How do you read in the "Some Text" on the other end?
Post Edited (kt88seamp) : 6/28/2010 12:09:53 AM GMT
Comments
They both show how to read from a serial input.
Bill
This assumes you have a 32-character buffer (array of bytes) at the address indicated by pntr, and an object called serial that has an rx method (like FullDuplexSerial).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA