Function ziAPIDiscoveryGet#

ZIResult_enum ziAPIDiscoveryGet(ZIConnection conn, const char *deviceId, const char **propsJSON)#

Returns the device Discovery properties for a given device ID in JSON format. The function ziAPIDiscoveryFind must be called before ziAPIDiscoveryGet can be used. The propsJSON need not be deallocated by the user.

  • 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’.

  • propsJSON[out] The Discovery properites in JSON format of the specified device.



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