Commit 4c896a33cc52818d6506e7861f124777bb710497

Authored by Nur Fajar Wibowo
1 parent 1be2bd8291
Exists in master

set modemName by config like port_usb [close Issue #1]

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

lib/config.sample.json
1 1 {
2 2 "core": {
3 3 "usb_port": "/dev/ttyUSB0",
  4 + "modem_name": "CHANGE ME",
4 5 "node_port": "2110",
5 6 "url_post": "http://localhost:2211",
6 7 "api_key": "746573206D6F64656D2074656C6D6F73656C20666C617368"
... ... @@ -12,6 +12,7 @@ const qs = require('querystring');
12 12 //let modemName = process.argv[4];
13 13  
14 14 //common.log("port use man !! "+portUse+" "+modemName);
  15 +let modemName = config.core.modem_name;
15 16  
16 17 const serialPort = new SerialPort(config.core.usb_port, {
17 18 baudRate: 115200