Operating Instructions

authmethods: ['wampcra'],
authid: config.wamp.user,
onchallenge: function (session, method, extra) {
if (method === "wampcra") {
return autobahn.auth_cra.sign(config.wamp.key,
extra.challenge);
}
}
});
connection.onopen = function (session) {
console.log("connected to wamp-router", config.wamp.name)
if ( config.debug ) console.info("check epaper api tags")
session.call("agilion.wls.epaper.get_tags").then(
function (res) {
/*if ( config.debug ) console.log("epaperapi response:", res);*/
for (let etag of config.tagwhitelist){
var isin = false
for (let epaper of res["args"][1]){
if ( config.debug ) console.log("check epaperadr", epaper[0]);
if (epaper[0] == etag.addr){
isin = true
break
}
}
if (isin == false){
console.error("epaper in config not found in wls (nodekey):
",etag.addr)
}
}
}
);
}; //connection.onopen
connection.onclose = function (reason, details) {
console.log("no connection to wamp-router",config.wamp.name);
Programming interface
3.5 Code examples
SIMATIC RTLS4083T
22 Operating Instructions, 09/2020, C79000-G8976-C527-04