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

onNewMessage and onNewMessageIndicator never fired #78

Closed komorebi-san closed 3 years ago

komorebi-san commented 3 years ago

I am able to get the full inbox message, but the onNewMessage event doesn't triggere when a new SMS is received. I am using "serialport-gsm": "^3.2.3"

stale[bot] commented 3 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.

bd1887 commented 3 years ago

Just in case anyone else is having the same problem, I was able to resolve it by adding customInitCommand: 'AT+CNMI=3,1,0,0,1', to the modem.open options. Maybe one of the contributors can comment more on if this is an acceptable fix -- I don't totally understand the parameters I'm setting with this command.