Fix url and uri

This commit is contained in:
Isaac Connor
2025-08-18 15:50:40 -04:00
parent 035b81dff5
commit 0d88341712

View File

@@ -142,7 +142,7 @@ sub sendCmd {
my $self = shift;
my $cmd = shift;
return $self->get($url);
return $self->get($cmd);
}
sub cameraReset {
@@ -506,8 +506,7 @@ sub presetHome {
sub reboot {
my $self = shift;
$uri->path('/axis-cgi/restart.cgi');
my $response = $self->get($uri->canonical);
my $response = $self->sendCmd('/axis-cgi/restart.cgi');
return $response->is_success;
}