mirror of
https://github.com/Art-of-WiFi/UniFi-API-client.git
synced 2024-11-24 11:10:02 +01:00
fixed typo in examples/change_wlan_password.php
This commit is contained in:
parent
008280e870
commit
cc486f652d
@ -37,9 +37,10 @@ $new_password = '<new password goes here>';
|
||||
*/
|
||||
$unifi_connection = new UniFi_API\Client($controlleruser, $controllerpassword, $controllerurl, $site_id, $controllerversion);
|
||||
$set_debug_mode = $unifi_connection->set_debug($debug);
|
||||
$loginresults = $unifi_connection->set_wlansettings($wlan_id, $new_password);
|
||||
$loginresults = $unifi_connection->login();
|
||||
$results = $unifi_connection->set_wlansettings($wlan_id, $new_password);
|
||||
|
||||
/**
|
||||
* provide feedback in json format
|
||||
*/
|
||||
echo json_encode($loginresults, JSON_PRETTY_PRINT);
|
||||
echo json_encode($results, JSON_PRETTY_PRINT);
|
||||
|
Loading…
Reference in New Issue
Block a user