Here is Java Source Code for Send SMS, filename: SendSMS.java
import java.io.*;
import javax.didik.sms.driver.SMSAT;
import javax.didik.sms.driver.event.SerialEvent;public class SendSMS{
public static void main(String[] args){
SMSAT at=new SMSAT();
at.ConnectPort(”COM4″);
SerialEvent event=new SerialEvent(at.getSerialPortValue(),at.getInputStreamValue(),at.getOutputStreamValue());
if(event.SendMessage(at,”628999851448″,Text.”this is sent message”))
{
System.out.print(”message successfully sent”);
}
else
{
System.out.print(”message failure to sent”);
}
}
}
Categories: