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

Unable to get full ussd response #57

Closed vutranHS closed 4 years ago

vutranHS commented 4 years ago

Unable to get the second line of USSD.

https://github.com/zabsalahid/serialport-gsm/blob/03b854816c87dfbdd1f86869fed1b82121a33a23/lib/functions/ussd.js#L8

This only the the first USSD response Example USSD reponse:

Please select options:
1. Small package
2. Medium package.
3. Large package.
gsmModem.sendUSSD("*0#", (response, err) => {
 // this only receive the first line
// Please select options:

})
 gsmModem.on('onNewIncomingUSSD', (data) => {
    // this only receive the first line of response
console.log('onNewIncomingUSSD', { data })

})
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.

biloo-dev commented 3 years ago

Hi, I have the same issue Did you find a solution? Please help me thanks