Commit 9ac900289851341fcc61b47240167a743382da1d

Authored by Adhidarma Hadiwinoto
Exists in master

Merge branch 'master' of http://gitlab.kodesumber.com/bowo/modem-sds

Showing 2 changed files Side-by-side Diff

lib/config.sample.json
... ... @@ -3,7 +3,7 @@
3 3 "usb_port": "/dev/ttyUSB0",
4 4 "modem_name": "CHANGE ME",
5 5 "node_port": "2110",
6   - "url_post": "http://localhost:2211",
  6 + "url_post": "http://localhost:2211/inbox",
7 7 "api_key": "746573206D6F64656D2074656C6D6F73656C20666C617368"
8 8 }
9 9 }
... ... @@ -100,7 +100,7 @@ function postIncomingMessage(nomor, pesan){
100 100 common.log("----------------------------post incoming message-------------------------");
101 101 pesan = pesan.replace(/\s+$/, '');
102 102 //let encodePesan = encodeURIComponent(pesan);
103   - let inboxUrl = config.core.url_post+"/inbox?";//msg="+encodePesan+"&number="+nomor;
  103 + let inboxUrl = config.core.url_post;//+"/inbox?";msg="+encodePesan+"&number="+nomor;
104 104 common.log("url 2211; "+inboxUrl);
105 105 let tryOptions = {
106 106 url: inboxUrl,