Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WncControllerK64F
Dependents: WNCProximityMqtt Pubnub_ATT_IoT_SK_WNC_sync BluemixDemo BluemixQS ... more
WNCSms Class Reference
Component to use the Short Messages Service (SMS) More...
#include <IOTSMS.h>
Public Member Functions | |
| int | init (uint32_t poll=0, void((*cb)(WNCSmsMsg &s))=NULL) |
| Create SMSInterface instance. | |
| int | send (const string &number, const string &message) |
| Send a SM. | |
| int | get (string &number, string &message) |
| Receive a SM. | |
| char * | getSMSNbr (void) |
| Get the users number to use for SMS messaging. | |
| void | attach (void(*fp)(WNCSmsMsg &s)) |
| Attached a callback function for a Receive SMS. | |
Detailed Description
Component to use the Short Messages Service (SMS)
Definition at line 43 of file IOTSMS.h.
Member Function Documentation
| void attach | ( | void(*)(WNCSmsMsg &s) | fp ) |
| int get | ( | string & | number, |
| string & | message | ||
| ) |
Receive a SM.
- Parameters:
-
string Pointer to the sender's phone number string Pointer to store the the incoming message into
- Returns:
- 0 on success, error code on failure
Definition at line 136 of file IOTSMS.cpp.
| char * getSMSNbr | ( | void | ) |
Get the users number to use for SMS messaging.
- Parameters:
-
none
- Returns:
- character pointer on success, NULL on failure
Definition at line 148 of file IOTSMS.cpp.
| int init | ( | uint32_t | poll = 0, |
| void((*cb)(WNCSmsMsg &s)) | = NULL |
||
| ) |
Create SMSInterface instance.
Initialize interface
| int send | ( | const string & | number, |
| const string & | message | ||
| ) |
Send a SM.
- Parameters:
-
string& receiver's contact number string& the message to send
- Returns:
- 0 on success, error code on failure
Definition at line 114 of file IOTSMS.cpp.
Generated on Tue Jul 12 2022 20:19:35 by
1.7.2

