Commit a563e601a770a8d6b5747b9b8e4f3e229358c671
1 parent
afe1003d11
Exists in
master
AT
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
modem-tester.js
... | ... | @@ -47,8 +47,7 @@ port = new SerialPort(config.modem.device, { baudRate: 115200 }, async (err) => |
47 | 47 | process.exit(1); |
48 | 48 | } |
49 | 49 | |
50 | - await writeToPortDelayed('AT\r'); | |
51 | - | |
50 | + await modemCommands.writeToPortAndWaitForOkOrError('AT\r'); | |
52 | 51 | await modemCommands.writeToPortAndWaitForOkOrError('AT&FE0\r'); |
53 | 52 | await modemCommands.writeToPortAndWaitForOkOrError('AT+CMGF=0\r'); |
54 | 53 | await modemCommands.writeToPortAndWaitForOkOrError('AT+CNMI=1,2,0,1,0\r'); |