Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send USSD, an example would be great #43

Closed
narai420 opened this issue Aug 10, 2019 · 4 comments
Closed

How to send USSD, an example would be great #43

narai420 opened this issue Aug 10, 2019 · 4 comments

Comments

@narai420
Copy link

Can you please, give me an example of how to use mode.sendUSSD() function properly. I can understand it .
Thank You

@narai420
Copy link
Author

When I run any USSD command I just get the "OK" response, but I don't know how to get the full result.
Like *566# should return the balance , but it returns ok

@Xsmael
Copy link

Xsmael commented Sep 25, 2019

@narai420 check out #17

@karianpour
Copy link
Contributor

To get the USSD answer you have to register an event listener, something like:

      modem.on('onNewIncomingUSSD', (data)=>{
        console.log('onNewIncomingUSSD', {data});
      })

@zabsalahid please close the issue.

@narai420
Copy link
Author

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants