Function ziAPIDiscoveryGetValueS#

ZIResult_enum ziAPIDiscoveryGetValueS(ZIConnection conn, const char *deviceId, const char *propName, const char **value)#

Returns the specified string Discovery property value for a given device ID. The function ziAPIDiscoveryFind must be called with the required device ID before using ziAPIDiscoveryGetValueS. The value must not be deallocated by the user.

Parameters:
  • conn[in] Pointer to ZIConnection with which the value should be retrieved.

  • deviceId[in] The ID of the device to get Discovery information for, as returned by ziAPIDiscoveryFind, e.g., ‘dev2006’.

  • propName[in] The name of the desired integer Discovery property.

  • value[out] Pointer to the value of the specified Discovery property.

Returns:

  • ZI_INFO_SUCCESS

  • Other return codes may also be returned, for a detailed error message use ziAPIGetLastError.