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

sendSms problem #17

Open
haddadMedAmine opened this issue Nov 19, 2019 · 2 comments
Open

sendSms problem #17

haddadMedAmine opened this issue Nov 19, 2019 · 2 comments

Comments

@haddadMedAmine
Copy link

hi,
when I get the number it's ok but when I send to that number it didn't work

numberSms = gsm.getNumberSms(nSms);
gsm.sendSms(numberSms,sms);

error : no known conversion for argument 1 from 'String' to 'char*'

@aliila1351
Copy link

can you solve this ?

@wilyfreddie
Copy link

wilyfreddie commented May 25, 2020

Try this:

numberSms = gsm.getNumberSms(nSms);
gsm.sendSms(numberSms.c_str(), sms);

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

3 participants