03-10-2016 01:28 PM - edited 03-10-2016 01:31 PM
Hello,
I'm trying to use an ASCII object to send a text string out a seriel port to a very picky cell modem that is incompatible with the SMS feature. I'm using Lookout 6.7.1.
I have the ASCII object set up as follows:
RequestFormat= "%s%s"
RQV1.txt = "TO=5559991234"
RQV2.txt = "MSG= Hello"
Under this set up it works perfectly, however, I want to change RQV1 to read a string out of a TextEntry. This way I can change the dial out number without having to edit the ASCII connections.
I named the TextEntry ASCII_cell_test and changed the ASCII object to:
RequestFormat= "%s%s"
RQV1.txt = ASCII_cell_test
RQV2.txt = "MSG= Hello"
I then typed the string "TO=5559991234" into ASCII_cell_test, but no luck. I tried it with and without quotation marks.
My guess is I'll have to change the request format, but I keep getting syntax errors.
Anybody have any suggestions?
03-10-2016 01:37 PM
Try using the value data member:
RQV1.txt = ASCII_cell_test.value
03-10-2016 01:59 PM
No go - the (implicit) data member carries the currently entered text