Commit 9fd37cd21f35c70f90478af6cd64985389ddcb1d
1 parent
3728e3517d
Exists in
master
MODEM-TESTER: setinterval csq
Showing 2 changed files with 5 additions and 0 deletions Side-by-side Diff
modem-tester.js
... | ... | @@ -104,6 +104,10 @@ port = new SerialPort(config.modem.device, { baudRate: 115200 }, async (err) => |
104 | 104 | // eslint-disable-next-line no-await-in-loop |
105 | 105 | await writeToPortDelayed(commands[i], 2000); |
106 | 106 | } |
107 | + | |
108 | + setInterval(() => { | |
109 | + writeToPort('AT+CSQ\r', 2000); | |
110 | + }, 30000); | |
107 | 111 | }); |
108 | 112 | |
109 | 113 | if (config && config.modem_tester && config.modem_tester.parser === 'regex') { |
package.json