Re: [Smslink-users] Newline character in SMS message
Status: Beta
Brought to you by:
panderss
|
From: Jeff M. <je...@te...> - 2008-05-30 16:53:03
|
Hi Philippe, It is specific to SMSLink. If I talk to the modem directly, I can do: AT+CMGS="123456789" <cr> first line<cr> 2nd line<cr> 3rd line<cr><ctrl-Z> When the SMS is received, it will properly show up as first line 2nd line 3rd line I can't find any way to do the same thing with SMSLink. I would prefer to use stdin (i.e. sendsms -f -), but I can't get it to work anyway I have tried it. SMSLink changes any special characters to a space, so a "/r" turns into just " r". Thanks, Jeff ----- Original Message ----- From: "Philippe Andersson" <pa...@ib...> To: "Jeff Meek" <je...@te...> Cc: <sms...@li...> Sent: Friday, May 30, 2008 10:34 AM Subject: Re: [Smslink-users] Newline character in SMS message Hello Jeff, Jeff Meek wrote: > This seems like an easy question, but I didn't find it anywhere in the docs, > email archives or google. > > How do I insert a newline or line break into the sms message? > I have tried sending a plain text file with the line breaks, backslash-n, > %-n, ^n, ctrl-n, etc. > The message always gets concatenated into a single line of text. > > The docs for the AT+CMGS command says any ascii character can be sent except > for ctrl-z. How do I send a line break? Is your question specific to SMSLink (i.e. "how will SMSLink treat embedded newline characters") or is this a generic question about the SMS protocol ? Ph. A. |