How to create a string?
CannibalRobotics
Posts: 535
I have a sequence of ASCII coming down a serial pipe into FullDuplexSerial.
I need to gather up the charactors and turn them into a string.
What's the best way, or can some one reference an obex entry with a good example?
Thanks in advance
Jim-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.
I need to gather up the charactors and turn them into a string.
What's the best way, or can some one reference an obex entry with a good example?
Thanks in advance
Jim-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.
Comments
you define an array of bytes with a length that can store your longest string
then you can use the method RxStr to receive the string.
the bytearray is accessed through the variable-ADRESS by using the adress-operator "@"
best regards
Stefan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
It does everything you need.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Jim-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.