Function ziAPIDiscoveryFindAll#

ZIResult_enum ziAPIDiscoveryFindAll(ZIConnection conn, char *deviceIds, uint32_t bufferSize)#

Perform a Discovery property look-up for the specified deviceAddress and return its device ID. Attention! This invalidates all pointers previously returned by ziAPIDiscovery* calls. The deviceId need not be deallocated by the user.

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

  • deviceIds[out] Pointer to a buffer that is to contain the list of newline-separated IDs of the devices found, e.g. “DEV2006\nDEV2007\n”.

  • bufferSize[in] The size of the buffer pointed to by deviceIds. If the buffer is too small to hold the complete list of device IDs, its contents remain unchanged.

Returns:

  • ZI_INFO_SUCCESS

  • ZI_ERROR_LENGTH The provided buffer is too small to hold the list.

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