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

Can't send SMS: this.queue is empty #3

Open
mithoog opened this issue Jul 21, 2014 · 2 comments
Open

Can't send SMS: this.queue is empty #3

mithoog opened this issue Jul 21, 2014 · 2 comments

Comments

@mithoog
Copy link

mithoog commented Jul 21, 2014

I'm executing following program:

var modem = require('modem').Modem();
modem.open('COM4', function() {
    modem.execute('AT+CMGS="03028461532"\rHello World\r'+String.fromCharCode(26)+'\r',
    function(err, result){
        if(err) console.log(err);
        console.log('Result: ' + result);
    });
});

this.queue is empty. Witch raises an error.

@emilsedgh
Copy link
Owner

Hi.
Please paste the error, this way I cannot understand what is going on.
Also, why wouldnt you use modem.sms() instead of manually AT+CMGS?

@brugnara
Copy link

This is fixed in my patch #11

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