2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

49_IPCAM: introduced attribute httpTimeout

git-svn-id: https://svn.fhem.de/fhem/trunk@24186 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2021-04-08 11:13:19 +00:00
parent 774bea905d
commit 2b386e6387
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- change: 49_IPCAM: introduced attribute httpTimeout
- change: 49_IPCAM: introduced incrementalTimeout - change: 49_IPCAM: introduced incrementalTimeout
- feature: 93_DbLog: new attributes SQLiteCacheSize, SQLiteJournalMode - feature: 93_DbLog: new attributes SQLiteCacheSize, SQLiteJournalMode
- bugfix: 98_Text2Speech.pm: some Improvements by Mirko - bugfix: 98_Text2Speech.pm: some Improvements by Mirko

View File

@ -38,7 +38,7 @@ IPCAM_Initialize($$)
$hash->{GetFn} = "IPCAM::Get"; $hash->{GetFn} = "IPCAM::Get";
$hash->{SetFn} = "IPCAM::Set"; $hash->{SetFn} = "IPCAM::Set";
# $hash->{FW_detailFn} = "IPCAM::DetailFn"; # $hash->{FW_detailFn} = "IPCAM::DetailFn";
$hash->{AttrList} = "basicauth delay credentials path pathCmd pathPanTilt query snapshots storage timestamp:0,1 ". $hash->{AttrList} = "basicauth delay credentials path pathCmd pathPanTilt query snapshots storage httpTimeout timestamp:0,1 ".
"cmdPanLeft cmdPanRight cmdTiltUp cmdTiltDown cmdStep ". "cmdPanLeft cmdPanRight cmdTiltUp cmdTiltDown cmdStep ".
"cmdPos01 cmdPos02 cmdPos03 cmdPos04 cmdPos05 cmdPos06 cmdPos07 cmdPos08 ". "cmdPos01 cmdPos02 cmdPos03 cmdPos04 cmdPos05 cmdPos06 cmdPos07 cmdPos08 ".
"cmdPos09 cmdPos10 cmdPos11 cmdPos12 cmdPos13 cmdPos14 cmdPos15 cmdPosHome ". "cmdPos09 cmdPos10 cmdPos11 cmdPos12 cmdPos13 cmdPos14 cmdPos15 cmdPosHome ".
@ -283,6 +283,8 @@ sub SendCommand {
url => $camUrl, url => $camUrl,
method => "GET", method => "GET",
callback => \&IPCAM::SendCommand_Callback, callback => \&IPCAM::SendCommand_Callback,
incrementalTimeout => 1,
timeout => AttrVal($name, 'httpTimeout', 4),
hash => $hash hash => $hash
}; };
@ -488,6 +490,7 @@ sub RequestSnapshotWithCallback {
callback => \&IPCAM::RequestSnapshot_Callback, callback => \&IPCAM::RequestSnapshot_Callback,
hash => $hash, hash => $hash,
incrementalTimeout => 1, incrementalTimeout => 1,
timeout => AttrVal($name, 'httpTimeout', 4),
callbackCommand => $callbackCommand callbackCommand => $callbackCommand
}; };
HttpUtils_NonblockingGet($apiParam); HttpUtils_NonblockingGet($apiParam);