13.2.14 SMS
Important note:
If the device is in "online" mode no SMS can be processed.
13.2.14.1 Callback functions
public func(const SmsTel[], const SmsText[]);
Function to be provided by the script developer, that is called up if an SMS is received
Parameter
Explanation
SmsTel
String that contains the telephone number of the sender of the SMS
SmsText
String that contains the content of the SMS
13.2.14.2 Functions
native rM2M_SmsInit(funcidx, config);
Initialises SMS receipt
Parameter
Explanation
funcidx
Index of the public function that should be called up if an SMS has been received
Type of function: public func(const SmsTel[], const SmsText[]);
Important note:
If an SMS that is longer than 160 characters is
received, it is discarded immediately. The specified public function is not
called up.
config
Reserved for extensions
Explanation
Return value
l
OK, if successful
l
< OK, if an error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 118)
native rM2M_SmsClose();
Deactivates SMS receipt
Explanation
Return value
OK
186
Rev. 05
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......