Open Mohammed34B opened 1 year ago
Please add a logger to the options and post full log
I solved this with
let text; if(splitted_newpart.length>1){ let decodable = /\"(.*?)\"/g.exec(splitted_newpart[1]) if(decodable.length>1){ //text = Helper.decode16Bit(decodable[1]); text = Helper.decode7Bit(decodable[1]); }else{ text = splitted_newpart[1] } }
at ussd.js
What is the value of the variable decodable
?
I just change
text = Helper.decode16Bit(decodable[1]);
to text = Helper.decode7Bit(decodable[1])
at ussd.js file.
hi I'm trying to get an order USSD When you use this code gsmModem.sendUSSD("*200#"); gsmModem.on('onNewIncomingUSSD', (data)=>{ console.log('onNewIncomingUSSD', {data}); }); you get: {"status":"Incoming USSD","data":{"text":"틲簞캗ꤕꪰ뻩졝漗偹万뇋ꂕⰶꯑ抳ᥭ⛋臊璐ﵝ龃呷菆\ud94dܑ폭ヨ練韉Ȇ퍉쯴睝셠㫤덙Ѐ","follow":"further action required","followCode":"1"}}