Programming interface
3.5 Code examples
SIMATIC RTLS4083T
Operating Instructions, 12/2019, C79000-G8976-C527-02
23
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);
}
connection.open();
Code example RPC calls (pseudo code)
//get_version
RPC: agilion.wls.epaper.get_version [ ]
-> In return value: [Version]
//get_tags
RPC: agilion.wls.epaper.get_tags [ ]
-> In return value: [ [TransponderID, ProductID, "FirmwareVersion"] , TransponderID,
ProductID, "FirmwareVersion"], ...]
-> [ [34954, 6021999, "GANYMED_TY41_002.000.025"] , [35319, 6021999,
"GANYMED_TY41_002.000.025"], ...]
//set_display_theme
RPC: agilion.wls.epaper.set_display_theme [TransponderID, ThemeID, [ [FieldID,
"text1"], [FieldID, "text2"] ] ]
agilion.wls.epaper.set_display_theme [12345, 1, [ [0, "text1"], [1, "text2"] ] ]
-> Theme 1 with texts 1: text1 and 2: text2