Jump to content

Recommended Posts

Posted

I am trying to arm and disarm a camera with the gRPC protocol. So far I succeeded to enable and disable a camera but I have no idea how I can arm and disarm a camera. Should I use the ChangeConfigRequest and directly change the config of the video channel? 

  • 1 year later...
Posted

ChangeConfigRequest is the right idea for enable/disable, but arming usually lives on a different service than the video channel config. Check the device's capabilities first, since not every camera exposes an arm/disarm action, and then look for the specific request that carries the armed state rather than editing channel config directly. If the config schema has an armed flag on the channel or device object, use that path, but confirm the field name from the service definition you're compiling against. Sharing the request type you used for enable would make it easier to point you at the matching arm call.

Join the conversation

If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...