Commit 3915d32894c5e1b28f422a5b55b4260a8c60b45c
1 parent
19788e2dc0
Exists in
master
Tambahan data registrasi modem
Showing 2 changed files with 7 additions and 1 deletions Side-by-side Diff
lib/register-modem.js
... | ... | @@ -20,9 +20,12 @@ module.exports = (modemInfo) => { |
20 | 20 | url: reportUrl(), |
21 | 21 | qs: { |
22 | 22 | modem: config.name, |
23 | + modem_device: config.modem.device, | |
23 | 24 | modem_imsi: modemInfo.imsi, |
24 | 25 | modem_msisdn: modemInfo.msisdn, |
25 | - modem_device: config.modem.device, | |
26 | + modem_network_id: modemInfo.networkId, | |
27 | + modem_network_name: modemInfo.networkName, | |
28 | + modem_signal_strength: modemInfo.signalStrength, | |
26 | 29 | uptime: Math.floor(process.uptime()), |
27 | 30 | report_port: config.http_command_server.listen_port, |
28 | 31 | report_apikey: config.http_command_server.apikey, |
lib/report-sender.js
... | ... | @@ -37,6 +37,9 @@ function incomingSMS(message, modemInfo) { |
37 | 37 | modem_imsi: modemInfo.imsi, |
38 | 38 | modem_msisdn: modemInfo.msisdn, |
39 | 39 | modem_device: config.modem.device, |
40 | + modem_network_id: modemInfo.networkId, | |
41 | + modem_network_name: modemInfo.networkName, | |
42 | + modem_signal_strength: modemInfo.signalStrength, | |
40 | 43 | uptime: Math.floor(process.uptime()), |
41 | 44 | report_port: config.http_command_server.listen_port, |
42 | 45 | report_apikey: config.http_command_server.apikey, |