Closed karianpour closed 5 years ago
modem.open method is missing some arguments if you do not send callback in order to use promise.
modem.open
callback
modem.js line 53
modem.js
if (callback == undefined) { return new Promise((resolve, reject) => { modem.open((error, result) => { if (error) {
should be set to
if (callback == undefined) { return new Promise((resolve, reject) => { modem.open(device, options, (error, result) => { if (error) {
otherwise it traps in a infinite loop.
@karianpour thanks again man.
modem.open
method is missing some arguments if you do not sendcallback
in order to use promise.modem.js
line 53should be set to
otherwise it traps in a infinite loop.