zabsalahid / serialport-gsm

SerialPort-GSM is a simplified plugin for communicating with gsm modems. (Primarily for sms) (Focused in PDU mode)
MIT License
90 stars 47 forks source link

Reception of sms when modem is off #65

Closed Cycl0pe closed 4 years ago

Cycl0pe commented 4 years ago

Hey,

Imagine the modem is off and I receive a text, is it possible to trigger the 'onNewMessage' event when I will turn on the modem to process the new message received when the modem was off. I thought it worked that way before I changed the configuration of my modem.

I played a bit with +CPMS and the method 'getSimInbox' to retrieve the previous messages but I would prefer to automatically trigger 'onNewMessage' with the message object.

I don't know if I am cristal clear...

Cycl0pe

Apollon77 commented 4 years ago

This could be implemented in the library by kind of a flag - because I think that not any library user wants this ...

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.