I’m using php_serial_class and php to send SMS with a simple code like this:
$serial->sendMessage("AT+cmgf=1;+cnmi=2,1,0,1,0\r");
$serial->sendMessage("at+cmgs=\"$send_phone\"\r");
$serial->sendMessage("$message");
$serial->sendMessage(chr(26));
How if I wish to know the message is sent out or not?
I tried this but not working…if(!$serial->sendMessage())..
Is there any other ways?Thank you.
Thanks to mario.
I can use trim
readPort()to get the response whether it’s OK or ERROR.