Page 1 of 1

SMS line change

Posted: Mon Aug 27, 2018 8:51 am
by jollybv
Hi Guys

I would like to send an SMS but not quite sure of how to change lines do i use
Send Message = "First Line "+ "\r\n" +"Second Line" "\r\n" + "Third Line"+ "r\n\"

or would it be something like this

Send Message = "First Line \r\n" +"Second Line \r\n" + "Third Line r\n\"

I have also tried this but dose not seem to work

Message = "Airtime Balance " + AirTime
Message = Message + "\r\n"
Message = Message + "Speaker Volume " + Volume
Message = Message + "\r\n"
Message = Message + "Mic Volume " + MicVol

Re: SMS line change

Posted: Mon Aug 27, 2018 10:20 am
by mnf
Both should be equivalent - but may not be what the SMS expects as a line break.

Try '<br>' or '\n' or '%0a' ('%\n'?) ((instead of '\r\n')

Martin

Re: SMS line change

Posted: Mon Aug 27, 2018 10:32 am
by jollybv
Hi Martin

Thanks will try them have have tried the "\n" dos not work