RCP API  6.61.0

◆ rcp_set_int()

rcp_error_t rcp_set_int ( rcp_camera_connection_t con,
rcp_param_t  id,
int32_t  val 
)

Set integer value for RCP parameter.

This is used to set a value on the camera. This value usually comes from a list provided by the camera or an enum found in rcp_types_public.h rather than directly given by the user or hard-coded in the client application.

Note
Do not assume the set will be honored by the camera. Always rely on CURRENT messages from the camera to display data to the user. For example, to toggle record on the camera you can call However, record should not be indicated on the client application until an incoming CURRENT for RCP_PARAM_RECORD_STATE with the value of RECORD_STATE_RECORDING has been received.
Parameters
[in]conthe camera connection
[in]idthe RCP parameter
[in]valvalue to set
Returns
RCP_SUCCESS on success.