String sending for AT command

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

String sending for AT command

Post by MarkW »

Hi there,

I need to send an AT command to a GSM module that is used to setup
gprs mode etc.
However, within the string constant i also need to send the quote char ( " )
which kind of messes with the string format requirements. You then land up
with quotes within quotes.....
I know one can send part of the string and then send a char and then the rest
of the string in a few commands, but is there a certain format expression or a way
to send the whole string one shot?

Thanx

Mark

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: String sending for AT command

Post by Benj »

Hi Mark,

Adding a backslash before the quote in the string should work \", Same as with newlines \n and carriage returns \r.

e.g.

"ATD \"078877787787;\"\n\r"

MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Re: String sending for AT command

Post by MarkW »

Hi Ben,

Great.....thank you.

Makes things a bit simpler :D

Post Reply