Air202 sms.send() 不發送短信

歡迎您!
此腳本不發送SMS消息。 如何改進這個腳本? 謝謝你的幫助。

Hello!
This script does not send an SMS message. How to improve this script? Thank you for your help.

require"sms"

module(...,package.seeall)

local function print(...)
_G.print("test",...)
end

local function ccurc(data,prefix)
if data == "SMS READY" then
print("sms ready")
sys.dispatch("sel")
end
end
ril.regurc("SMS READY",ccurc)

function send_sms()
print("send sms")
sms.send(888132355,"test")
end
sys.regapp(send_sms,"sel")

attachments-2019-03-UkAC3Nxa5c8e61334669f.PNG

此腳本發送SMS消息。
This script sends an SMS message.

require"sms"

module(...,package.seeall)

local function print(...)
_G.print("test",...)
end

function send_sms()
sms.send(888132355,"test")
end
sys.timer_start(send_sms,35000)

attachments-2019-03-0seLW8X65c8e61bec3f22.PNG

请先 登录 后评论

1 个回答

moskwa

我找到了解决方案。 我想在第一篇文章中发布解决方案,但编辑不起作用。
I found a solution. I wanted to post the solution in the first post, but the edit does not work.

require"sms"

module(...,package.seeall)

local function print(...)
_G.print("test",...)
end

local function ccurc(data,prefix)
if data == "SMS READY" then
sys.dispatch("SMS_READY")
print("sms ready")
sys.dispatch("sel")
end
end
ril.regurc("SMS READY",ccurc)

function send_sms()
print("send sms")
sms.send(888132355,"test")
end
sys.regapp(send_sms,"sel")

attachments-2019-03-BBsvg6Nv5c90bec9ea269.PNG

请先 登录 后评论