fullduplexserialplus question
electromanj
Posts: 270
Hello all, I have a question about the getstr method.
PUB str(stringptr)
'' Send zero terminated string that starts at the stringptr memory address
repeat strsize(stringptr)
tx(byte[stringptr++])
what is the (stringptr)? is that a variable, or the rx pin?
Kinda lost here.
Thanks for any help.
PUB str(stringptr)
'' Send zero terminated string that starts at the stringptr memory address
repeat strsize(stringptr)
tx(byte[stringptr++])
what is the (stringptr)? is that a variable, or the rx pin?
Kinda lost here.
Thanks for any help.
Comments
You can call it by simply calling:
obj.str(string("Hello, World!")) or obj.str(myStringVar)
Bill
Bill