*Examples – Change camera name

Configuration Article | CA-20220907-TP-79

VDG Sense | API | References

The name of a camera can be changed with the executeAction command. This command executes a particular action on the server. The command requires a XML message as post data. This XML message holds all parameters for the action.

Set camera name

Sets the camera name of camera with serverid 8712348723918719871 and deviceid 3 to “MyCamera”.

Command url:

http://<server>/command?command=executeAction

Post data:

<!--?xml version="1.0"?-->  <action>   <name>camera.setDeviceSetting</name>   <parameters>     <parameter name="serverid">8712348723918719871</parameter>     <parameter name="deviceid">3</parameter>     <parameter name="name">CameraName</parameter>     <parameter name="value">MyCamera</parameter>   </parameters>  </action>

Result:

<result errorcode="0">   <description>Ok</description>  </result>

Check camera name

To see if the camera name is set correctly issue the command getDeviceList.

Command url:

Result:

Non existing device

What happens when we address a device that doesn’t exists?

Command url:

Post data:

Result:

 

Related pages