Write to a register using GVCP
masterWriting to a register requires taking control of the camera. You can use the TakeControl() method, which handles writing to the CCP register. If successful, you must periodically send true to the heartbeat mechanism to maintain control. Once control is acquired, use WriteRegisterAsync to write the value to the target register.
var gvcp = new Gvcp
{
CameraIp = "192.168.10.99"
};
if (await gvcp.TakeControl())
{
var reply = await gvcp.WriteRegisterAsync("0x0D04", 1000);
}
else
{
throw new Exception("Camera is already in control");
}