Hi all. I have been searching on this forum for several days now and I was not able to find a solution to this problem:
Context:
we have a GenieACS 1.2.3 running on a debian for testing purposes, the final goal is to give the customer the ability to change his/her Wireless SSID and Password thru a costumer self-management web page.
Situation:
I was able to create a provisioning script which loads an extension, makes an api call to another server and return a json list of parameters and values. It works fine for anything I have tried so far except for the wifi parameter:
const dev_id = declare( "DeviceID.ID", {value: 1}).value[0];
var json = { "devid" : dev_id, "provision" : "inform" };
const res = ext("cpe", "pruebaRequest", JSON.stringify( json ) );
for( const prop in res ) {
var valor = res[prop];
log( "propiedad "+prop );
log( "valor: "+valor );
declare( prop, {value: now}, {value: valor });
}
(sorry about the spannish mix).
I have tried using InternetGatewayDevice.LANDevice..WLANConfiguration..KeyPassphrase which gives me an 9007 error (invalid argument value). I have tried other parameters and they give me no error but password is not changed:
InternetGatewayDevice.LANDevice..WLANConfiguration..Presharedkey
InternetGatewayDevice.LANDevice..WLANConfiguration..Presharedkey.1.Presharedkey
test device is Huawei EG8141A5. Been searching on the web for specific Huawei acs parameters but so far no luck.
truth be told, I am a programmer and I had zero idea about TR069 until they handed me the task to investigate how to do this. Have read and re-read the docs and the only unclear point to me was the virtual parameters sections which gives an example to to do exactly this but it does not mention how to implement it.
I will post code if needed. Any suggestion / tip ?
edit: also, I would like to know if passwords can be set as is, or do I have to apply an encription function.
thanks in advance.