Initial commit
This commit is contained in:
16
Backend/dist/Integrations/buildin/pjlink/main.js
vendored
Normal file
16
Backend/dist/Integrations/buildin/pjlink/main.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
exports.__esModule = true;
|
||||
var pjlink = require("pjlink");
|
||||
module.exports = function (Api) {
|
||||
Api.registerConnectionValidator('pjlink', function (validatorAPI) {
|
||||
var ip = validatorAPI.properties.ip;
|
||||
var port = validatorAPI.properties.port;
|
||||
var password = validatorAPI.properties.password;
|
||||
var beamer = new pjlink(ip, port, password);
|
||||
beamer.getClass(function (err, classNumber) {
|
||||
if (!err)
|
||||
validatorAPI.setInstance(beamer);
|
||||
validatorAPI.callback(err == undefined, err == undefined ? null : 'Unable to connect to projector: ' + err);
|
||||
});
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=main.js.map
|
||||
Reference in New Issue
Block a user