pulkin / micropython

MicroPython implementation on Ai-Thinker GPRS module A9 (RDA8955)
https://micropython.org
MIT License
103 stars 30 forks source link

SMS management #102

Open kindmartin opened 3 years ago

kindmartin commented 3 years ago

Hi, I would like to know how SMS module works besides the example for send/receive and cellular.on_sms( evt) handlers

I'm looking for info on how .withdraw() works, what data type I need to pass, how to clean sim sms storage if is possible. would be nice also info on how to write .is_inbox / is_read / is_unsent

the only that seems to work is ._withdraw_by_index( index )

hints?

thanks

garudaonekh commented 2 years ago

Both withdraw and send sms works. But it not stable. If the number of SMS is too many, it'll timeout-some SIM can store more SMS than the others. For me, if it failed to load SMS list, i delete all sms and I delete every SMS which is successfully read.