Copy Profile Token to ControlDevice for use with Netcat PTZ script

pull/2645/head
Isaac Connor 2019-06-21 12:42:26 -04:00
parent 60618d5998
commit 85b9b045cc
1 changed files with 2 additions and 1 deletions

View File

@ -234,6 +234,7 @@ if ( !isset($_REQUEST['step']) || ($_REQUEST['step'] == '1') ) {
// $monitor['MaxFPS'] = $profile['MaxFPS'];
// $monitor['AlarmMaxFPS'] = $profile['AlarmMaxFPS'];
$monitor['Path'] = $profile['Path'];
$monitor['ControlDevice'] = $profile['Profile']; # Netcat needs this for ProfileToken
$sourceDesc = base64_encode(json_encode($monitor));
$profiles[$sourceDesc] = $sourceString;
}