-
Notifications
You must be signed in to change notification settings - Fork 1
/
neo-sample.js
42 lines (31 loc) · 869 Bytes
/
neo-sample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var neogate = require("NeogateInterface");
neogate.open({
ip: '192.168.3.227',
port: '5038',
apiuser: 'apiuser',
apipass: 'apipass'
});
neogate.sendUSSD("*101#",3);
neogate.sendSMS("scscsc",2);
// neogate.events.on("ready", function () {
// setInterval(() => {
// neogate.scanSIM();
// }, 5000);
// neogate.sendUSSD("*124*1234*200*");
// });
// neogate.events.on("siminfo", function (siminfo) {
// console.log("siminfo");
// console.log(siminfo);
// });
// neogate.events.on("SMSUpdate", function (data) {
// console.log(SMSUpdate);
// console.log(data);
// });
// neogate.events.on("SMSReceived", function (sms) {
// console.log("SMSReceived");
// console.log(sms);
// });
// neogate.events.on("USSDResponse", function (data) {
// console.log("USSDResponse");
// console.log(data);
// });