zabsalahid / serialport-gsm

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

Check if getScts exists and is a function #101

Open mejuliver opened 2 years ago

mejuliver commented 2 years ago

error: TypeError: message.getScts is not a function trace: /lib/functions/modem.js line 1589 solution: check first if "getScts" exist on the message obj and must be type function

Apollon77 commented 2 years ago

Honestly ... I'm nit that sure because the interesting topic would be to understand WHY it is no function ... and in the other case WHY message is undefined zto make sure it is not a "flow" topic

Apollon77 commented 2 years ago

Can you please provide a logging or more details in whcih cases these issues happened ?

Apollon77 commented 1 year ago

@mejuliver Plese check if the issue still occurs in 4.0.1

Apollon77 commented 1 year ago

@zabsalahid I would close this PR because no reaction