DEMO: C

Requirements

Operating System: Linux, OS X or Windows.

Compilation

  • Prepare the cURL for transferring data with URLs, reference to the curl tutorial.
  • Download DEMO:pro-convert-api-demo-c.zip
  • Compile "pro_convert_curl.c", and link to "libcurl"
  • Build the pro_convert_curl.exe file

Example

  • Navigate into the bin directory and run the pro_convert_curl.exe
cd pro-convert-api-demo-c/bin/linux
./pro_convert_curl <hostip:port>
  • Sample response

***** 1. login *****
login response data:
{
    "status": 0
}

***** 2. get caps *****
get caps response data:
{
    "status": 0,
    "max-input-width": 4096,
    "max-input-height": 2160,
    "max-output-width": 4096,
    "max-output-height": 2160,
    "has-input": true,
    "has-output": true,
    "has-loop-through": true,
    "has-fan": true,
    "has-input-edid": true,
    "has-output-edid": true,
    "has-sdcard": true,
    "has-ptz": true
}

***** 3. upload EDID *****
upload EDID response data:
{
    "status": 0,
    "data": "AP///////wA09wEAAQAAAAEaAQOAAAB4Au6Vo1RMmSYPUFT//4AxQEVAYUBxQIGA0QDhwAEACOgAMPJwWoCwWIoAUB10AAAeAjqAGHE4LUBYLEUAUB10AAAeAAAA/QAPlg+HPAAAAAAAAAAAAAAA/ABNQUdFV0VMTAogICAgAWYCA1HxV2EQHwQTBRQgISJdXl9gZWZiY2QHFgMSMgl/BxUHUD0GwFcGAF9/AWd/AINPAADiAA9uAwwAEAC4eCEQgAECAwRn2F3EAXiAA+MPAeABHYAYcRwWIFgsJQBAhGMAAJ5mIVaqUQAeMEaPMwBQHXQAAB4AAAAAAAAAAAAAzw=="
}

results matching ""

    No results matching ""