This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

problem with 4g modem
#6
Replace the whole sendsms function with this and check if it works. Also check if you have any messages in Logs.
Code:
function sendsms(number, message)
  local client, err = require('socket').udp()
  if client then
    client:sendto(number .. ' ' .. message, '127.0.0.1', 12535)
    client:close()
  else
    log('failed to created socket: ' .. tostring(err))
  end
end
Reply


Messages In This Thread
problem with 4g modem - by Frank68 - 31.01.2022, 14:03
RE: problem with 4g modem - by admin - 31.01.2022, 15:30
RE: problem with 4g modem - by Frank68 - 31.01.2022, 16:05
RE: problem with 4g modem - by admin - 01.02.2022, 08:20
RE: problem with 4g modem - by Frank68 - 01.02.2022, 12:12
RE: problem with 4g modem - by admin - 01.02.2022, 12:18
RE: problem with 4g modem - by Frank68 - 01.02.2022, 12:24
RE: problem with 4g modem - by admin - 01.02.2022, 13:35
RE: problem with 4g modem - by Frank68 - 01.02.2022, 14:54
RE: problem with 4g modem - by admin - 01.02.2022, 14:56
RE: problem with 4g modem - by Frank68 - 01.02.2022, 15:08
RE: problem with 4g modem - by admin - 02.02.2022, 09:13
RE: problem with 4g modem - by Frank68 - 02.02.2022, 09:23
RE: problem with 4g modem - by admin - 02.02.2022, 09:24
RE: problem with 4g modem - by admin - 02.02.2022, 09:53
RE: problem with 4g modem - by Frank68 - 02.02.2022, 09:54
RE: problem with 4g modem - by Frank68 - 02.02.2022, 14:06
RE: problem with 4g modem - by admin - 03.02.2022, 07:27
RE: problem with 4g modem - by Frank68 - 03.02.2022, 07:32

Forum Jump: