-
Notifications
You must be signed in to change notification settings - Fork 68
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
GSM module is not working #28
Comments
After opening the modem, you have to call the sms function. modem.open(device, function(){ |
var modem = require('modem').Modem();
/*
Output: But Methods are not working. can you please help me here? |
I have the exact same problem.
The "open" callback seems to work, I get the "Modem ready" message logged, but the "sms" callback never fires, no error or anything. |
Have you guys tried other ports? For example my modem opens up |
This may sound dumb but my modem is what huawei call a wifi wingle that connects to 4G and serves wifi to provide internet access. it has an sms function which as far as I can tell is only available by loading the config page in my browser. What Id like to know is can I use this package to connect to my modem? |
var device = '/dev/ttyUSB0';
var message = {
text : 'Hello',
receiver: '+91xxxx',
encoding: '7bit'
};
modem.open(device, function(){
console.log('OPEN!!');
});
/*
*/
modem.sms(message, function(err, res){
console.log('SMS', err, res);
});
OUTPUT:
It can't send sms. 'delivery' method is also not working.
The text was updated successfully, but these errors were encountered: