hendrikw01 / tr-064

TR-064 - UPnP/IGD for node.js
Apache License 2.0
35 stars 24 forks source link

try to implement authentication, not working yet #2

Closed JumpLink closed 9 years ago

JumpLink commented 10 years ago

any idea why this does not work?

example with username and password:

var tr = require("tr-064");
var tr064 = new tr.TR064();

var inspect = function(object) {
  var util = require('util');
  console.log("\n"+util.inspect(object, showHidden=false, depth=2, colorize=true)+"\n");
}

tr064.initTR064Device("192.168.178.1", 49000, function (err, device) {
    if (!err) {
        console.log("Found device! - TR-064");
        device.services['urn:dslforum-org:service:DeviceInfo:1'].actions.GetInfo(function(error, result) {
          inspect(error);
          inspect(result);
        });
    }
}, {user: "admin", password: "gurkensalat"});
hendrikw01 commented 9 years ago

Thanks, i have added authentication.