Skip to content

Instantly share code, notes, and snippets.

@voipnorm
Created August 3, 2018 15:48
Show Gist options
  • Save voipnorm/bd08e3a4b14e5c7829d830fef538c35e to your computer and use it in GitHub Desktop.
Save voipnorm/bd08e3a4b14e5c7829d830fef538c35e to your computer and use it in GitHub Desktop.
var TpXapi = require( "./utils/endpoint");
const codecs = ['10.10.10.116'];
const videoArray = [];
codecs.forEach( function (ip) {
const endpoint = {
'password':"password",
'username':"admin",
'ipAddress':ip
};
const videoCodec = new TpXapi(endpoint);
videoArray.push(videoCodec);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment