USART.read problem

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
zrimax
Posts: 1
Joined: Sun Jul 31, 2011 11:54 am
Location: Sri Lanka

USART.read problem

Post by zrimax » Sun Jul 31, 2011 12:10 pm

Code: Select all

Dim resvStr As String(5)

usart.read(resvStr)

it does not give any errors and compiles. But it is not reading form termal. what is I'm missing ???

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Mon Aug 01, 2011 7:20 pm

Obviously there's more to the program that you're not showing (or it wouldn't compile), but usart.read() will read bytes until it receives a NULL (0) character unless you have changed the ReadTerminator

Post Reply