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
String sending for AT command
Moderator: Benj
- 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
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"
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"
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel