Skip to content

Commit

Permalink
fixed typo in examples/change_wlan_password.php
Browse files Browse the repository at this point in the history
  • Loading branch information
malle-pietje committed Oct 6, 2017
1 parent 008280e commit cc486f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/change_wlan_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
*/
$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);

0 comments on commit cc486f6

Please sign in to comment.