Acknowledgment of my sms

good evening, I would like to test the acknowledgment of my sms and if it is negative activate an output of my flexy
(in basic language)
thanks in advance
jm

@KIRTY_ONE

I don’t believe I am fully understanding your question.
What do you mean if it’s negative?

You can trigger an action in BASIC scripting by using the ONSMS listener then read the SMS or use the value to trigger an output.

https://developer.ewon.biz/content/sms-reception-ewon

good evening, if the acknowledges receipt of my SMS sent by my provider is negative I activate an output of my flexy that will send the alarm via another channel

++
jm

@KIRTY_ONE

Who is sending the sms?
Who should report a failure to receive a response? How long after?

the flexy sends an alarm message to my pc and if the flexy does not receive acknowledges receipt of the SMS sent it activates one of its outputs that will send the alarm via another flexy and another provider
++

jm

@KIRTY_ONE

Here’s an example that I wrote that should be quite similar.

To trigger the SMS, I am using a ONCHANGE listener for one of my tags.

After 300 seconds (5 minutes), the eWON will change the bit value of another tag so that it triggers an alarm in my eWON. If an SMS is received before 5 minutes, it cancels the process by disabling the timer.

EXAMPLE:

ONSMS "Goto SMSReceipt"
ONCHANGE "mytag", "Goto SendText" // Sends SMS on a tag value change
END
    
    SendText:
    number$ = "5555555555,gsm,0" // fake phone number for example
    Sendsms number$, "Sending SMS"
    print "sending SMS"
    
    SendConfirmation:
    S% = GETSYS PRG,"ACTIONSTAT" 
    IF S% = -1 THEN Goto SendConfirmation
    IF S% = 0 THEN Goto AwaitingReceipt
    END
    
    AwaitingReceipt:
    TSET 1,300 // 5 minutes
    ONTIMER 1, "goto trigger"
    END

    trigger:
    Print "Email Receipt NOT received"
    my_bit@ = 1 // triggers mem bit to send an alarm email
    TSET 1,0
    END
    
    SMSReceipt:
        TSET 1,0 // close timer
        a% = Getsys Prg,"SmsRead"
        If (a%<>0) Then
            a$ = Getsys Prg,"smsmsg"
            Print "Message: ";a$
        ENDIF
    END 

good evening, thank you very much I will test and I will come back to you
++
jm