Messaging

Parent Previous Next


SEND GENERIC SMS


AT#SMS=dest,"text",date


dest  international phone number, or

       ##1 : last voice caller

       ##2 : last data caller

       ##3 : last SMS sender

       ##5 : console


text  message content (within quotes). Can contain dynamic variables. See       the complete list here


date  0 : do not include trailing date

AT#SMS=+39444444,"Message text"

send an SMS to +39444444


AT#SMS=##3,"Message text",0

send an SMS to last SMS sender, no trailing date


AT#SMS=##5

send an message text to local COM port (console)


AT#SMS=+441111111,"Use variable: input1=*i1*, output2=*O2*"

send an SMS to +441111111, with text comprising some dynamic variables



SEND STATUS


AT#STATUS=dest


dest  international phone number, or

       ##1 : last voice caller

       ##2 : last data caller

       ##3 : last SMS sender

       ##5 : console


Omitting destination, status will be returned on the same bearer used for the command.


AT#STATUS

return status


AT#STATUS=+39444444

send a Status SMS to +39444444


AT#STATUS=##2

send a status SMS to last data caller



SEND GENERIC email


AT#EMAIL=dest,"text",body


dest  destination email address


text  message content (within quotes). Can contain dynamic variables. See       the complete list here


body  0 : do not include status into email body


Email body will include a complete status if last parameter (body) is missing.


AT#EMAIL=name@domain.com,"Message text"

send email to name@domain.com, status will be included into email body


AT#EMAIL=name@domain.com,"Message text",0

send email to name@domain.com, only Subject line


AT#EMAIL=name@domain.com,"switch=*i6* motor=*O1*"

send email to name@domain.com, with text comprising some dynamic variables



EMAIL LOG FILE


AT#LOGEMAIL=dest


dest  destination email address



AT#LOGEMAIL=name@domain.com

send last 98 events stored into LOG memory to name@domain.com



LOCATION


AT#WAY=dest


dest  international phone number, or

       ##1 : last voice caller

       ##2 : last data caller

       ##3 : last SMS sender

       ##5 : console


Omitting destination, status will be returned on the same bearer used for the command.

Web services must be enabled.


AT#WAY

return geographic address nearest to main GSM cell


AT#WAY=+39444444

send geographic address nearest to main GSM cell to +39444444


AT#WAY=##1

send geographic address nearest to main GSM cell to last voice caller



LIST CALLS


AT#LIST<type>=dest


type  A : answered calls

       U : unanswered calls


dest  international phone number, or

       ##1 : last voice caller

       ##2 : last data caller

       ##3 : last SMS sender

       ##5 : console


Omitting destination, status will be returned on the same bearer used for the command.


AT#LISTU

return last incoming calls terminated without answer


AT#LISTA=+39444444

send last answered incoming calls to +39444444


AT#LISTA=##1

send last answered incoming calls to last voice caller



ENable ALERTS to recipients


AT#ALERT=name


name  recipient name to enable the alert


Omitting recipient field, alerts will be sent to all recipients


disable ALERTS to recipients


AT#NOALERT=name

name  recipient name to disable the alert


Omitting recipient field, alerts will be stop to all recipients


At start-up all recipients are enabled to receive alerts.


AT#ALERT="an"

enable recipient name starting with "an" (e.g. "anna", "Antony") to receive alerts


AT#ALERT

send alerts to recipients


AT#NOALERT

do not send alerts, useful for maintenance period or "do not disturb"


AT#NOALERT="Phil"

do not send alerts to recipient "Phil"



SAVE CURRENT STATUS TO LOG MEMORY


AT#LOGSTATUS

AT#LOGSTATUS

current status, including all active channels, will be saved into device event memory (LOG), a real datalogger can be implemented using scheduled operation for recursive storage



SEND ACTIVE ALERTS TO RECIPIENTS


AT#NOW=dest



dest  international phone number of recipient




This command is useful when a recipient wants to receive an SMS reporting his active alerts at the moment of request.

If there is no RECIPIENT matching the specified phone number, no message will be sent.


Example:


A recipient R001 is associated with event of output 1 activation.

This event is configured to send an SMS at phone number +44111111 with text "Output 1 active"


AT#NOW=+44111111 command will send an SMS with message text "Output 1 active" if (and only) output 1 is currently active.



WRITE CUSTOM PARAMETER TO STATUS JSON FILE


AT#TEXT=<id>,<text>


<id>   parameter identifier (tag, 1 single letter or number)

<text> free text (the value of parameter, 10 character max)


AT#TEXT=A,"Undervoltage"

Create the tag A assigning the value "Undervoltage" within the status json file on the server


AT#TEXT=4,"252"

Create the tag 1 assigning the value "252" within the status json file on the server