EasyManuals Logo

Embedded Systems LM5p-GSMC User Manual

Default Icon
291 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #251 background imageLoading...
Page #251 background image
251
18.1. Examples
Binary write (send the following SMS to switch kitchen lights on):
W 1/1/1 true
Scaling write (send the following SMS to set value 67% for red LED):
W LED1Red 67
Temperature (floating point) write (send the following SMS to make setpoint in the living room
to 22.5 degrees):
W “Room Setpoint” 22.5
Read (send the following SMS to read the security panel value:
R 2/1/1
18.2. Send SMS messages to specific SIM numbers after group-read or group-
write is triggered
Task: Assume we have an Event-based script which triggers a program once group-read or
group-write is triggered for address 1/1/1. We want to send SMS to numbers 23335555 and
23335556 with 1/1/1 actual status.
1.
require('socket')
2.
3.
client
=
socket.udp
()
4.
5.
-- in the message field the number where SMS has to be send should be specified at the
beginning
6.
local
msg
='23335555 1/1/1 changes its value to: '
..
tonumber(
event.datahex
)
7.
client:sendto
(
msg,
'127.0.0.1'
,
12535)
8.
9.
msg
='23335556 1/1/1 changes its value to: '
..
tonumber(
event.datahex
)
10.
client:sendto
(
msg,
'127.0.0.1'
,
12535)
18.3. Send SMS messages without 3G modem
How to send event SMS to mobile phone from LogicMachine through Twilio service, without
external 3G adapter?
You can use Twilio service which offers free of charge SMS in the test period and messaging at
$0.01 for regular usage. The only disadvantage is it will use your standard Internet connection
to send messages to Twilio servers (not via GSM as with 3G adapters).

Table of Contents

Other manuals for Embedded Systems LM5p-GSMC

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Embedded Systems LM5p-GSMC and is the answer not in the manual?

Embedded Systems LM5p-GSMC Specifications

General IconGeneral
BrandEmbedded Systems
ModelLM5p-GSMC
CategoryDimmer
LanguageEnglish

Related product manuals