Here's my code
include "php_serial.class.php";
// Let's start the class
$serial = new phpSerial;
$serial->deviceSet("COM1");
$serial->confBaudRate(115200);
$serial->confCharacterLength(8);
$serial->confParity("none");
$serial->confStopBits(1);
$serial->confFlowControl("xonxoff");
$serial->deviceOpen();
$serial->sendMessage("at+cmgs=\"+6583569765\"\r");
$serial->sendMessage("hello".chr(26));
$serial->deviceClose();
?>

Responses
1 Respones to "Sending command to GSM Modem using php"
This blog is so informative for providing a valuable information about sending command using sms api php.
December 11, 2018 at 2:31 AM
Post a Comment