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.

Check the amount of mobile account!
#2
Hi,

I don't think this data is available on the SIM itself.

Normaly you send sms to provider and you reveive the
value back by SMS.

It is possible to receive this reply sms and gsub the data from the received string.

You have to check out what string you need to send to , and what number to use for, your provider to receive the reply.

If you know those 2 items it's easy to create your wish.

BR,

Erwin

Sorry, i see now that you already receive the SMS with the reply.

You can fetch the saldo from the received string by using:

amount = receiveddata:match("stringbeforedatapart(.-)stringafterdatapart")

BR,
Erwin
Reply


Messages In This Thread
RE: Check the amount of mobile account! - by Erwin van der Zwart - 12.10.2016, 17:56

Forum Jump: