12.10.2016, 17:56
(This post was last modified: 12.10.2016, 18:21 by Erwin van der Zwart.)
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
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