Soweit ich das verstehe wird dieses Script dafür verwendet:
Code: Alles auswählen
<PASSWD> = zu setzendes (wie auch immer generiertes) Passwort
<FRITZ_USER> = FritzBox Benutzer
<FRITZ_PASSWD> = Passwort des FritzBox Benutzers
<WLAN-SSID> = FritBox WLAN SSID
// SOAP Teil:
$client1 = new SoapClient(null,array('location'=> "http://fritz.box:49000/upnp/control/wlanconfig3",
'uri' => "urn:dslforum-org:service:WLANConfiguration:3",
'soapaction' => "urn:dslforum-org:service:WLANConfiguration:3#SetSecurityKeys",
'noroot' => True,
'login' => <FRITZ_USER>,
'password' => <FRITZ_PASSWD>
));
$client1->SetSecurityKeys(
new SoapParam('', 'NewWEPKey0'),
new SoapParam('', 'NewWEPKey1'),
new SoapParam('', 'NewWEPKey2'),
new SoapParam('', 'NewWEPKey3'),
new SoapParam('F88F901BF783296D82CBA3FAB8922294159EA16BC043E3BCECB4CDD5E513ED04', 'NewPreSharedKey'),
new SoapParam($pwd , 'NewKeyPassphrase')
);
//QR - Teil:
$code ='qrencode -o /opt/fhem/www/tablet/image/qrh.png "WIFI:S:<WLAN-SSID>;T:WPA;P:'.<PASSWD>.';;"';
shell_exec($code);
Das Fritzbox TR064 Binding nutzt ja auch dieses Protokoll.
Ist es möglich diese Funktionalität in oH mittels Binding oder das Script einzubinden?