Commit 4a6dfad17c8d6a74ffeab2c9024d5dcfc3bfa218

Authored by Adhidarma Hadiwinoto
1 parent c428dcf05a
Exists in master

Remove unused codes

Showing 1 changed file with 0 additions and 23 deletions Side-by-side Diff

... ... @@ -113,29 +113,6 @@ function simpleCommand(cmd, callback) {
113 113 writeToPortAndWaitForOK(cmd);
114 114 }
115 115  
116   -/*
117   -async function readIMSI() {
118   - logger.info('Querying IMSI');
119   - const parserReadIMSI = new ParserDelimiter({ delimiter: DELIMITER_WAIT_FOR_OK });
120   - parserReadIMSI.on('data', (data) => {
121   - if (data) {
122   - modemInfo.imsi = data.toString().trim();
123   - logger.info(`IMSI: ${modemInfo.imsi}`);
124   - }
125   -
126   - mutex.releaseLockWaitForOK();
127   - });
128   -
129   - port.pipe(parserReadIMSI);
130   - await writeToPortAndWaitForOK('AT+CIMI\r');
131   -
132   - // selesai hanya jika lock sudah terbuka oleh parser
133   - mutex.setLockWaitForOK();
134   - port.unpipe(parserReadIMSI);
135   - mutex.releaseLockWaitForCommand();
136   -}
137   -*/
138   -
139 116 function readManufacturer() {
140 117 return new Promise((resolve) => {
141 118 simpleCommand('AT+CGMI\r', (err, result) => {