1.1.1 • Published 4 years ago

neogateinterface v1.1.1

Weekly downloads
85
License
ISC
Repository
-
Last release
4 years ago

NeogateInterface is a module that allows you to seamlessly acces neogate APIs for SMS and USSD services

Tested with Neogate TG 200 and TG 400 but should work with others,

Feel free to file an issue.

How to, example

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); });

1.1.1

4 years ago

1.1.0

4 years ago

1.0.12

4 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago