20.03.2025, 14:49
Hi,
We are using a LogicMachine5 Reactor GSM to send SMS in case of alarm of some variables. The script uses a for to send the message to multiple numbers, with a delay between them. You can see the code below (I changed the phone numbers with generic ones for security purposes).
The problem is that not every SMS is received. What could be causing this? Is there any way to check if the SMS is received?
Thank you in advance,
André Neves
We are using a LogicMachine5 Reactor GSM to send SMS in case of alarm of some variables. The script uses a for to send the message to multiple numbers, with a delay between them. You can see the code below (I changed the phone numbers with generic ones for security purposes).
The problem is that not every SMS is received. What could be causing this? Is there any way to check if the SMS is received?
Thank you in advance,
André Neves
Code:
require('user.sms')
Nrs_Tlf={'123456789',
'987654321',
'147852369'}
tab = string.split(name, ">")
if value==1 then
Alarme="Alarme:\n"..tab[2].."\n"..timestamp
elseif (value==2) then
Alarme="Alarme Reconhecido:\n"..tab[2].."\n"..timestamp
elseif (value==3) then
Alarme="Alarme Reposto:\n"..tab[2].."\n"..timestamp
end
if (value<4 and value>0) then
for i = 1, 3, 1 do
sendsms(Nrs_Tlf[i],Alarme)
os.sleep(30)
end
log("SMS enviados")
else
log("Out of bounds.")
end