hi,
i am trying to send an sms  from my j2me midlet to the gsm modem so that i 
can pick it up using ReadMessages.java. After sending the sms i can't see 
it being picked up. this is the j2me code:

*//+254712893128 is the SIM card number and -1 the dest port
 String addr = "sms://+254712893128:-1";
MessageConnection conn =
  (MessageConnection) Connector.open(addr);
TextMessage msg =
    (TextMessage) conn.newMessage(
    MessageConnection.TEXT_MESSAGE);
msg.setPayloadText( "Hello World" );
conn.send(msg);*

*
*

after running this,the message is not sent.how do i correct this,is it a 
problem with the way I've set the address??

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/smslib/-/1HxrX1cenEsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to