我找到了解决方案。 我想在第一篇文章中发布解决方案,但编辑不起作用。
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")