17.08.2023, 07:24
(08.08.2023, 08:01)admin Wrote: Try this (not tested):
Code:function AT:call(number)
self:send('ATD' .. number)
os.sleep(8)
self:send('ATH')
end
Hi, this not working,
If I use in script calling this function:
require('user.sms')
call('3711234567')
I have error
Resident script:3: attempt to call global 'call' (a nil value)
stack traceback:
If I use
require('user.sms')
AT:call('3711234567')
Other error:
User library sms:319: attempt to index field 'port' (a nil value)
stack traceback:
User library sms:319: in function 'send'
User library sms:471: in function 'call'
So something needs to be corrected. If will be time, please look what I need correct in script.
BR, Alex