Closed justlester closed 2 days ago
I have read somewhere that it is not guaranteed to have own number stored on SIM. I had implemented fallback that sends me SMS from this new SIM with unknown number, I respond with its number and script uses setOwnNumber() to store it on SIM. Next call to getOwnNumber works as expected. It is not great and I don't like to guess what that timeout means but it mostly works.
Thanks! I have already solve this by the way and forgot to close
Hi!
I have a gsm modem with 16 sim slots and used 2 sims, (prepaid sim and postpaid sim) just for testing.
The serialport-gsm detected both sims and tried to run with the code below. It works smoothly with the prepaid sim, but when I try to use the postpaid sim, it throws a timeout error that
modem.getOwnNumber()
is unable to get the number of the postpaid sim. I also tried to increase the timeout, still same error.I commented on the
modem.getOwnNumber()
just to run the full process and everything works with getting the sim number! I hope you can check this out, this package is really awsome by the way!Here is my full code: