<< Click to Display Table of Contents >> Navigation: Modbus Universal MasterOPC Server > Lua 5.1 Reference Manual > Function library > The OTHERS Library > SMS Operations |
Sends the specified SMS message to the specified telephone.
Function arguments are:
1 – telephone number in quotes ("+7…")
2 – message text in quotes
3 – number of COM port, to which a GSM modem is connected. If the function is called from the node's Program, then it is necessary to specify the port number to which the modem is connected. If the function is called from the COM node, you must specify "" or null - then the COM port number of the current node is taken.
4 – timeout for a response from the modem in milliseconds. Optional parameter, if not specified, the value is taken in 5000 ms.
5 – inter-character timeout in milliseconds. Optional parameter, if not specified, the value is taken in 50 ms.
The functions returns the error flag: FALSE if SMS message is sent successfully, and TRUE if some error is detected.
Example
err = others.SendSMS("+79012345678","Hello World",10);