Checking AT Commands on Electron

Okay.
I have even seen this article here how to send SMS with Electron Sending SMS from Particle Electron using AT Commands

Bus it can’t help me because they don’t seem to check the return code. You see code like this
sprintf(szCmd, “AT+CMGS=”+%s",145\r\n", szPhoneNumber);

Serial.print("Sending command ");
Serial.print(szCmd);
Serial.println();

On my module I have RX and TX pins which I believe are being used automatically for this communication.