Newsletter
August 11, 2015 - 5:16pm, 4041 views
Hello
at above title! How can i do it?
Thanks advance for support
HI,
check the CTMI event
if(Event.indexOf("+CMTI") >= 0) {
System.out.println("Event");
int smsNumber = Integer.parseInt(Event.substring(start, Event.length()).trim());
.....
Regards
ALopez
Somewhere over the rainbow!!! Looking for the Oz Land!!!
Other example
public void ATEvent(String arg0) {
System.out.println("ATEvent: " + arg0);
if (arg0.indexOf("+CMTI:") > -1) {
......
Regards
ALopez
Somewhere over the rainbow!!! Looking for the Oz Land!!!
Hello,
The callback command described above by Antonio is a member of ATCommandListener interface which you should implement and add to the ATCommand instance. To get the URC's when the new SMS comes you also need to change the default settings for reporting of incoming messages with AT+CNMI command. Please try this: AT+CNMI=2,1 on the same ATCommand instance for which you add the listener.
Regards,
Bartłomiej
Hello AloPez, Bartlomiej
I think i can do it after i reference FotaMIDlet example of EHS6.
Now i have another problem with run NetDemo example.
How i can config a network connect to web server is local enviroment (not use internet) on EHS6 ?
Thanks and best regards
Hello,
If you have a SIM card from some provider you can connect to public addresses or addresses in the private subnetwork if your provider enables this (most probably not). You would probably need to have a private APN service from your provider.
Or you would need to have the private network (some kind of test network for example).
In the NetDemo example you need to change the address to some publicly available address and also replace the connection profile data with apn, user and password form your network provider.
Regards,
Bartłomiej