PDA

View Full Version : How can I send sms message ?


ameng
07-09-2002, 12:04 AM
Hello,
I want to send and receive SMS message on my application.
I have read the User's Guide and API-Reference.(V1.1)
On the document , It say V1.1 is support SMS. But I don't
know how to send ?
And another, on API_Reference(V1.1) - page 683 - bottom:
See Also:
AEESMSMsg, AEESMSTextMsg
But I can't find these to function. where can I find it ?
thank you!!

dxxvi
07-09-2002, 03:56 AM
In version 1.1 an application can not send SMS message. It can register to receive SMS message only.

carlos
07-09-2002, 12:03 PM
static boolean HandleEvent(IApplet * pi, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{

switch(eCode)
{

//EVENT THAT SIGNALS AN IMCOMING BREW DIRECTED SMS MESSAGE


case EVT_APP_MESSAGE:
{
const char* strData = (const char*) dwParam;
}
break;


}
}

Add this code to the switch statement in your event handler. The
fourth parameter, dwParam, contains the SMS data/text payload

I was able to test this using the TAPI emulator with sdk 1.1
and
I successfully was able to get it to work on a Kyocera 3035
while the apps was running in both cases.
Use 0x8 instead of EVT_APP_MESSAGE with you are trying to catch the event on a Kyocera.

-c