ct3_query_device_id_by_name

Navigation:  C++ > 采集器管理接口 > 设备接口 >

ct3_query_device_id_by_name

Previous pageReturn to chapter overviewNext page

 

函数

通过设备的名字查询设备的ID

int32 ct3_query_device_id_by_name(

 hd3_in uint32 nCollectorID,

 hd3_in const char* szDeviceName,

 hd3_out uint32* pnDeviceID

 );

 

参数

nCollectorID

      [in] 设备所在采集器的ID。

szDeviceName

      [in] 设备名称。

pnDeviceID

      [out] 设备ID

返回值

查询成功,返回RD_SUCCESS。查询失败返回其它错误码,见error_code.h。

举例

示例代码参见设备接口

参见

ct3_add_device

ct3_delete_device

ct3_query_device

ct3_query_device_id_by_name

ct3_query_devices_of_collector

ct3_modify_device

ct3_update_device_status

ct3_query_devices_status

©2015. All Rights Reserved.