FH_ChangeExistingConnectionParametersAsync

FH_ChangeExistingConnectionParametersAsync

Changes the connection parameters for already connected device without its reconnection.

int WINAPI FH_ChangeExistingConnectionParametersAsync(
        ID_VAR idComp,
        STR_VAR idDevice,
        JSON_VAR jsonParameters,
        int timeoutMs);

Here:

  • idComp – the computer’s ID
  • idDevice – the device’s ID
  • jsonParameters – new connection parameters (compression type, etc.) in the format of JSON object of{“compress”:XXX} type.
  • timeoutMs – timeout. By default equals to –1.

The returned value is the ID of the invoked command or 0 in case the command cannot be executed.