A double quote is not part of the AT command sequence.
When you want to issue multiple commands, typically you will issue each command followed by a newline, as specified by the command set.
So what is it you want to do? Do you want to send many commands, and then, after that, check whether the connection is there?
In general, you can tie many AT commands into a single string starting with a single AT. The "AT" traditionally stands for "Attention."
Thus, if you want to give the commands ATA0, ATB1 and ATC2, you could string them together in a single string as ATA0B1C1.
One reference for AT commands in GSM equipment can be found here: GSM - Openmoko
I'm doing a project with SMS and GRPS..so I need to change the setting on sim900,like getting ip address, access point name etc.
so, do you mean, i write it like this:
Assuming connection_check() does the right thing, yes, I imagine that would work. That loop will send five commands in sequence, calling connection_check() after each of those commands.