Hi all,
I want to write a program which wait SMS and can be activate when it receive one. I have noticed there is the indication : IND_SMS_RECEIVED, but I don't know how to use it. Somebody have an example ?
Thanks.
Yes, IND_SMS_RECEIVED is the indication you need to wait for. See the NAAS sample code (client.cpp in a directory named Naas) provided with the D211 SDK for an example on how to use indications. Basically you need to:
- Create an IPC pipe for communicating with D211.
- Register the indications you want to receive.
- Wait for the indication.
- Handle the received indication.
- Deregister the indications and close the IPC pipe when your program exits.