Description:
With this add-in script, you can configure a new SSID and a WLAN password for LCOS LX access points using variables.
List of used variables:
Variable | Description |
---|
SSIDname | Name of the SSID |
WLANpassword | Password for this SSID |
Add-in code:
/** * @param {Config} config * @param {Context} context * Do not edit this comment or parameter types. Required for code suggestions */ exports.main = function (config, context) { for ( var ssidName in context.network.ssids); var table = config.getTableByOid( "13.2.20.1" ); var row; var netNameUppercase = context.network.name.toUpperCase(); row = table.createNewRow(); row.setByOid( "1" , "1_" +netNameUppercase + "_" +ssidName); // Network-Name if (context.vars. SSIDname != "" ) { row.setByOid( 2 , context.vars. SSIDname ); } if (context.vars. WLANpassword .length > 7 && context.vars. WLANpassword .length < 64 ) { row.setByOid( 100 , context.vars. WLANpassword ); } table.addOrMerge(row); }; |
---|
Add-in as JSON file:
lx-ssid-name-password.json