OK - It looks like you have misunderstood the parameters for the "login" method.
$ok = $obj->login($username, $password);
You seem to be passing in 'login' for the username.
$device_object->login( 'login', "$PASSWORD" )
# Change 'login' to $USERNAME , which you need to pre-populate.
# No need for quotes around "$PASSWORD".
Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.
|