WVR_SetParameters

WVR_EXPORT void WVR_SetParameters(WVR_DeviceType type, const char * pchValue)

Function to set a parameter string to device service.

Parameters
  • type -

    which indicate WVR_DeviceType.

  • pchValue -

    set string to let AP communicate to device service.

How to use

Here is an example for the function:

#include <wvr/wvr_device.h>

char sourceString[256] = "camera=true";

//communicate to device service
//set "camera=true" string to force using camera function
WVR_SetParameters(WVR_DeviceType_HMD, sourceString);

Device Service need to implement setParameters function to set the string from content AP.