Commit 9fd37cd21f35c70f90478af6cd64985389ddcb1d

Authored by Adhidarma Hadiwinoto
1 parent 3728e3517d
Exists in master

MODEM-TESTER: setinterval csq

Showing 2 changed files with 5 additions and 0 deletions Side-by-side Diff

... ... @@ -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') {
... ... @@ -34,6 +34,7 @@
34 34 "komodo-sdk": "git+http://gitlab.kodesumber.com/komodo/komodo-sdk.git",
35 35 "locks": "^0.2.2",
36 36 "moment": "^2.24.0",
  37 + "node-pdu": "^1.0.15",
37 38 "request": "^2.88.0",
38 39 "serialport": "^7.1.5",
39 40 "serialport-gsm": "^3.2.0"