Audiovox P965 Datenblatt Seite 89

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 280
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 88
MikroNode
86
MikroNode
Mikronode
Full-Featured asynchronous Mikrotik API interface for NodeJS
[1]
.
var api = require('mikronode');
var connection = new api('192.168.0.1','admin','password');
connection.connect(function(conn) {
var chan=conn.openChannel();
chan.write('/ip/address/print',function() {
chan.on('done',function(data) {
var parsed = api.parseItems(data);
parsed.forEach(function(item) {
console.log('Interface/IP: '+item.interface+"/"+item.address);
});
chan.close();
conn.close();
});
});
});
Installation
Clone this repository into your node_modules directory. - or -
$ npm install mikronode
Features
Channel based communication
Multiple channels can be used at once.
Synchronous execution of commands issued on the same channel.
Asynchrounous execution of commands issued on different channels.
Focus on high performance
Seitenansicht 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 279 280

Kommentare zu diesen Handbüchern

Keine Kommentare