Documentation ¶
Index ¶
- type IotcoreClient
- func (c *IotcoreClient) AddDevice(request *iotcore.AddDeviceRequest) (*iotcore.AddDeviceResponse, error)
- func (c *IotcoreClient) AddDeviceLinks(request *iotcore.AddDeviceLinksRequest) (*iotcore.AddDeviceLinksResponse, error)
- func (c *IotcoreClient) AddLooDevice(request *iotcore.AddLooDeviceRequest) (*iotcore.AddLooDeviceResponse, error)
- func (c *IotcoreClient) CollectorReadMessage(request *iotcore.CollectorReadMessageRequest) (*iotcore.CollectorReadMessageResponse, error)
- func (c *IotcoreClient) CollectorWriteMessage(request *iotcore.CollectorWriteMessageRequest) (*iotcore.CollectorWriteMessageResponse, error)
- func (c *IotcoreClient) CreateAdminProduct(request *iotcore.CreateAdminProductRequest) (*iotcore.CreateAdminProductResponse, error)
- func (c *IotcoreClient) CreateDeviceTopo(request *iotcore.CreateDeviceTopoRequest) (*iotcore.CreateDeviceTopoResponse, error)
- func (c *IotcoreClient) CreateProduct(request *iotcore.CreateProductRequest) (*iotcore.CreateProductResponse, error)
- func (c *IotcoreClient) CreateProductTopic(request *iotcore.CreateProductTopicRequest) (*iotcore.CreateProductTopicResponse, error)
- func (c *IotcoreClient) DeleteDevice(request *iotcore.DeleteDeviceRequest) (*iotcore.DeleteDeviceResponse, error)
- func (c *IotcoreClient) DeleteDeviceTopo(request *iotcore.DeleteDeviceTopoRequest) (*iotcore.DeleteDeviceTopoResponse, error)
- func (c *IotcoreClient) DeleteProduct(request *iotcore.DeleteProductRequest) (*iotcore.DeleteProductResponse, error)
- func (c *IotcoreClient) DeleteProductWithAdmin(request *iotcore.DeleteProductWithAdminRequest) (*iotcore.DeleteProductWithAdminResponse, error)
- func (c *IotcoreClient) DescribeDevice(request *iotcore.DescribeDeviceRequest) (*iotcore.DescribeDeviceResponse, error)
- func (c *IotcoreClient) DescribeDeviceTopo(request *iotcore.DescribeDeviceTopoRequest) (*iotcore.DescribeDeviceTopoResponse, error)
- func (c *IotcoreClient) DescribeEventList(request *iotcore.DescribeEventListRequest) (*iotcore.DescribeEventListResponse, error)
- func (c *IotcoreClient) DescribeFunctionList(request *iotcore.DescribeFunctionListRequest) (*iotcore.DescribeFunctionListResponse, error)
- func (c *IotcoreClient) DescribeProduct(request *iotcore.DescribeProductRequest) (*iotcore.DescribeProductResponse, error)
- func (c *IotcoreClient) DescribeProductTopic(request *iotcore.DescribeProductTopicRequest) (*iotcore.DescribeProductTopicResponse, error)
- func (c *IotcoreClient) DescribeProductTopics(request *iotcore.DescribeProductTopicsRequest) (*iotcore.DescribeProductTopicsResponse, error)
- func (c *IotcoreClient) DescribeProductWithAdmin(request *iotcore.DescribeProductWithAdminRequest) (*iotcore.DescribeProductWithAdminResponse, error)
- func (c *IotcoreClient) DescribeProperty(request *iotcore.DescribePropertyRequest) (*iotcore.DescribePropertyResponse, error)
- func (c *IotcoreClient) DescribePropertySnapshot(request *iotcore.DescribePropertySnapshotRequest) (*iotcore.DescribePropertySnapshotResponse, error)
- func (c *IotcoreClient) DescribeThingModel(request *iotcore.DescribeThingModelRequest) (*iotcore.DescribeThingModelResponse, error)
- func (c *IotcoreClient) DescribeThingShadow(request *iotcore.DescribeThingShadowRequest) (*iotcore.DescribeThingShadowResponse, error)
- func (c *IotcoreClient) DescribeThingType(request *iotcore.DescribeThingTypeRequest) (*iotcore.DescribeThingTypeResponse, error)
- func (c *IotcoreClient) DescribeThingTypeList(request *iotcore.DescribeThingTypeListRequest) (*iotcore.DescribeThingTypeListResponse, error)
- func (c *IotcoreClient) DisableLogger()
- func (c *IotcoreClient) DownloadDeviceCertificate(request *iotcore.DownloadDeviceCertificateRequest) (*iotcore.DownloadDeviceCertificateResponse, error)
- func (c *IotcoreClient) ElevatorOperatingStatus(request *iotcore.ElevatorOperatingStatusRequest) (*iotcore.ElevatorOperatingStatusResponse, error)
- func (c *IotcoreClient) ExportThingModel(request *iotcore.ExportThingModelRequest) (*iotcore.ExportThingModelResponse, error)
- func (c *IotcoreClient) FindDeviceGroupLinkPage(request *iotcore.FindDeviceGroupLinkPageRequest) (*iotcore.FindDeviceGroupLinkPageResponse, error)
- func (c *IotcoreClient) GetDeviceGroup(request *iotcore.GetDeviceGroupRequest) (*iotcore.GetDeviceGroupResponse, error)
- func (c *IotcoreClient) GetDeviceGroupList(request *iotcore.GetDeviceGroupListRequest) (*iotcore.GetDeviceGroupListResponse, error)
- func (c *IotcoreClient) ImportThingModel(request *iotcore.ImportThingModelRequest) (*iotcore.ImportThingModelResponse, error)
- func (c *IotcoreClient) InvokeFunction(request *iotcore.InvokeFunctionRequest) (*iotcore.InvokeFunctionResponse, error)
- func (c *IotcoreClient) InvokeThingService(request *iotcore.InvokeThingServiceRequest) (*iotcore.InvokeThingServiceResponse, error)
- func (c *IotcoreClient) InvokeThingTopic(request *iotcore.InvokeThingTopicRequest) (*iotcore.InvokeThingTopicResponse, error)
- func (c *IotcoreClient) ListProductAbilities(request *iotcore.ListProductAbilitiesRequest) (*iotcore.ListProductAbilitiesResponse, error)
- func (c *IotcoreClient) ListProducts(request *iotcore.ListProductsRequest) (*iotcore.ListProductsResponse, error)
- func (c *IotcoreClient) ListProductsWithAdmin(request *iotcore.ListProductsWithAdminRequest) (*iotcore.ListProductsWithAdminResponse, error)
- func (c *IotcoreClient) LoongrayQueryPage(request *iotcore.LoongrayQueryPageRequest) (*iotcore.LoongrayQueryPageResponse, error)
- func (c *IotcoreClient) QueryAdminStatistics(request *iotcore.QueryAdminStatisticsRequest) (*iotcore.QueryAdminStatisticsResponse, error)
- func (c *IotcoreClient) QueryDeviceDetail(request *iotcore.QueryDeviceDetailRequest) (*iotcore.QueryDeviceDetailResponse, error)
- func (c *IotcoreClient) QueryDevicePage(request *iotcore.QueryDevicePageRequest) (*iotcore.QueryDevicePageResponse, error)
- func (c *IotcoreClient) ReadHoldingRegisters(request *iotcore.ReadHoldingRegistersRequest) (*iotcore.ReadHoldingRegistersResponse, error)
- func (c *IotcoreClient) RegisterDevice(request *iotcore.RegisterDeviceRequest) (*iotcore.RegisterDeviceResponse, error)
- func (c *IotcoreClient) RemoveDevice(request *iotcore.RemoveDeviceRequest) (*iotcore.RemoveDeviceResponse, error)
- func (c *IotcoreClient) RemoveLoongrayDevice(request *iotcore.RemoveLoongrayDeviceRequest) (*iotcore.RemoveLoongrayDeviceResponse, error)
- func (c *IotcoreClient) SetConfig(config *core.Config)
- func (c *IotcoreClient) SetDeviceProperty(request *iotcore.SetDevicePropertyRequest) (*iotcore.SetDevicePropertyResponse, error)
- func (c *IotcoreClient) SetLogger(logger core.Logger)
- func (c *IotcoreClient) UpdateDevice(request *iotcore.UpdateDeviceRequest) (*iotcore.UpdateDeviceResponse, error)
- func (c *IotcoreClient) UpdateDeviceTopo(request *iotcore.UpdateDeviceTopoRequest) (*iotcore.UpdateDeviceTopoResponse, error)
- func (c *IotcoreClient) UpdateLooDevice(request *iotcore.UpdateLooDeviceRequest) (*iotcore.UpdateLooDeviceResponse, error)
- func (c *IotcoreClient) UpdateProduct(request *iotcore.UpdateProductRequest) (*iotcore.UpdateProductResponse, error)
- func (c *IotcoreClient) UpdateProductWithAdmin(request *iotcore.UpdateProductWithAdminRequest) (*iotcore.UpdateProductWithAdminResponse, error)
- func (c *IotcoreClient) UpdateThingShadow(request *iotcore.UpdateThingShadowRequest) (*iotcore.UpdateThingShadowResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IotcoreClient ¶
type IotcoreClient struct {
core.JDCloudClient
}
func NewIotcoreClient ¶
func NewIotcoreClient(credential *core.Credential) *IotcoreClient
func (*IotcoreClient) AddDevice ¶
func (c *IotcoreClient) AddDevice(request *iotcore.AddDeviceRequest) (*iotcore.AddDeviceResponse, error)
注册单个设备并返回秘钥信息
func (*IotcoreClient) AddDeviceLinks ¶ added in v1.20.0
func (c *IotcoreClient) AddDeviceLinks(request *iotcore.AddDeviceLinksRequest) (*iotcore.AddDeviceLinksResponse, error)
建立设备间的父子关系
func (*IotcoreClient) AddLooDevice ¶ added in v1.27.0
func (c *IotcoreClient) AddLooDevice(request *iotcore.AddLooDeviceRequest) (*iotcore.AddLooDeviceResponse, error)
注册单个朗讯设备并返回秘钥信息
func (*IotcoreClient) CollectorReadMessage ¶ added in v1.28.0
func (c *IotcoreClient) CollectorReadMessage(request *iotcore.CollectorReadMessageRequest) (*iotcore.CollectorReadMessageResponse, error)
获取协议信息
func (*IotcoreClient) CollectorWriteMessage ¶ added in v1.28.0
func (c *IotcoreClient) CollectorWriteMessage(request *iotcore.CollectorWriteMessageRequest) (*iotcore.CollectorWriteMessageResponse, error)
写入采集器数据
func (*IotcoreClient) CreateAdminProduct ¶ added in v1.28.0
func (c *IotcoreClient) CreateAdminProduct(request *iotcore.CreateAdminProductRequest) (*iotcore.CreateAdminProductResponse, error)
新建产品
func (*IotcoreClient) CreateDeviceTopo ¶ added in v1.34.0
func (c *IotcoreClient) CreateDeviceTopo(request *iotcore.CreateDeviceTopoRequest) (*iotcore.CreateDeviceTopoResponse, error)
边缘代理设备与非直连设备拓扑关系创建接口
func (*IotcoreClient) CreateProduct ¶
func (c *IotcoreClient) CreateProduct(request *iotcore.CreateProductRequest) (*iotcore.CreateProductResponse, error)
新建产品
func (*IotcoreClient) CreateProductTopic ¶ added in v1.13.0
func (c *IotcoreClient) CreateProductTopic(request *iotcore.CreateProductTopicRequest) (*iotcore.CreateProductTopicResponse, error)
新建产品自定义Topic
func (*IotcoreClient) DeleteDevice ¶ added in v1.28.0
func (c *IotcoreClient) DeleteDevice(request *iotcore.DeleteDeviceRequest) (*iotcore.DeleteDeviceResponse, error)
设备删除接口
func (*IotcoreClient) DeleteDeviceTopo ¶ added in v1.34.0
func (c *IotcoreClient) DeleteDeviceTopo(request *iotcore.DeleteDeviceTopoRequest) (*iotcore.DeleteDeviceTopoResponse, error)
边缘代理设备与非直连设备拓扑关系删除接口
func (*IotcoreClient) DeleteProduct ¶
func (c *IotcoreClient) DeleteProduct(request *iotcore.DeleteProductRequest) (*iotcore.DeleteProductResponse, error)
删除产品
func (*IotcoreClient) DeleteProductWithAdmin ¶ added in v1.28.0
func (c *IotcoreClient) DeleteProductWithAdmin(request *iotcore.DeleteProductWithAdminRequest) (*iotcore.DeleteProductWithAdminResponse, error)
删除产品
func (*IotcoreClient) DescribeDevice ¶ added in v1.34.0
func (c *IotcoreClient) DescribeDevice(request *iotcore.DescribeDeviceRequest) (*iotcore.DescribeDeviceResponse, error)
查询单个设备详细信息
func (*IotcoreClient) DescribeDeviceTopo ¶ added in v1.34.0
func (c *IotcoreClient) DescribeDeviceTopo(request *iotcore.DescribeDeviceTopoRequest) (*iotcore.DescribeDeviceTopoResponse, error)
边缘代理设备与非直连设备拓扑关系查询接口
func (*IotcoreClient) DescribeEventList ¶ added in v1.34.0
func (c *IotcoreClient) DescribeEventList(request *iotcore.DescribeEventListRequest) (*iotcore.DescribeEventListResponse, error)
设备事件查询
func (*IotcoreClient) DescribeFunctionList ¶ added in v1.34.0
func (c *IotcoreClient) DescribeFunctionList(request *iotcore.DescribeFunctionListRequest) (*iotcore.DescribeFunctionListResponse, error)
查询方法调用列表信息
func (*IotcoreClient) DescribeProduct ¶
func (c *IotcoreClient) DescribeProduct(request *iotcore.DescribeProductRequest) (*iotcore.DescribeProductResponse, error)
查看产品
func (*IotcoreClient) DescribeProductTopic ¶ added in v1.20.0
func (c *IotcoreClient) DescribeProductTopic(request *iotcore.DescribeProductTopicRequest) (*iotcore.DescribeProductTopicResponse, error)
查看产品自定义Topic
func (*IotcoreClient) DescribeProductTopics ¶ added in v1.20.0
func (c *IotcoreClient) DescribeProductTopics(request *iotcore.DescribeProductTopicsRequest) (*iotcore.DescribeProductTopicsResponse, error)
查看产品自定义Topic列表
func (*IotcoreClient) DescribeProductWithAdmin ¶ added in v1.28.0
func (c *IotcoreClient) DescribeProductWithAdmin(request *iotcore.DescribeProductWithAdminRequest) (*iotcore.DescribeProductWithAdminResponse, error)
查看产品
func (*IotcoreClient) DescribeProperty ¶ added in v1.34.0
func (c *IotcoreClient) DescribeProperty(request *iotcore.DescribePropertyRequest) (*iotcore.DescribePropertyResponse, error)
查询属性接口
func (*IotcoreClient) DescribePropertySnapshot ¶ added in v1.34.0
func (c *IotcoreClient) DescribePropertySnapshot(request *iotcore.DescribePropertySnapshotRequest) (*iotcore.DescribePropertySnapshotResponse, error)
属性获取接口
func (*IotcoreClient) DescribeThingModel ¶ added in v1.29.0
func (c *IotcoreClient) DescribeThingModel(request *iotcore.DescribeThingModelRequest) (*iotcore.DescribeThingModelResponse, error)
根据物类型Code查看物模型完整信息
func (*IotcoreClient) DescribeThingShadow ¶
func (c *IotcoreClient) DescribeThingShadow(request *iotcore.DescribeThingShadowRequest) (*iotcore.DescribeThingShadowResponse, error)
查看设备影子
func (*IotcoreClient) DescribeThingType ¶ added in v1.34.0
func (c *IotcoreClient) DescribeThingType(request *iotcore.DescribeThingTypeRequest) (*iotcore.DescribeThingTypeResponse, error)
查询物类型详情
func (*IotcoreClient) DescribeThingTypeList ¶ added in v1.34.0
func (c *IotcoreClient) DescribeThingTypeList(request *iotcore.DescribeThingTypeListRequest) (*iotcore.DescribeThingTypeListResponse, error)
查询物类型列表
func (*IotcoreClient) DisableLogger ¶ added in v1.13.0
func (c *IotcoreClient) DisableLogger()
func (*IotcoreClient) DownloadDeviceCertificate ¶ added in v1.34.0
func (c *IotcoreClient) DownloadDeviceCertificate(request *iotcore.DownloadDeviceCertificateRequest) (*iotcore.DownloadDeviceCertificateResponse, error)
下载设备证书接口
func (*IotcoreClient) ElevatorOperatingStatus ¶ added in v1.28.0
func (c *IotcoreClient) ElevatorOperatingStatus(request *iotcore.ElevatorOperatingStatusRequest) (*iotcore.ElevatorOperatingStatusResponse, error)
获取电梯运行状态
func (*IotcoreClient) ExportThingModel ¶
func (c *IotcoreClient) ExportThingModel(request *iotcore.ExportThingModelRequest) (*iotcore.ExportThingModelResponse, error)
导出物模型
func (*IotcoreClient) FindDeviceGroupLinkPage ¶ added in v1.36.0
func (c *IotcoreClient) FindDeviceGroupLinkPage(request *iotcore.FindDeviceGroupLinkPageRequest) (*iotcore.FindDeviceGroupLinkPageResponse, error)
获取分组列表
func (*IotcoreClient) GetDeviceGroup ¶ added in v1.36.0
func (c *IotcoreClient) GetDeviceGroup(request *iotcore.GetDeviceGroupRequest) (*iotcore.GetDeviceGroupResponse, error)
获取分组列表
func (*IotcoreClient) GetDeviceGroupList ¶ added in v1.36.0
func (c *IotcoreClient) GetDeviceGroupList(request *iotcore.GetDeviceGroupListRequest) (*iotcore.GetDeviceGroupListResponse, error)
获取组列表
func (*IotcoreClient) ImportThingModel ¶
func (c *IotcoreClient) ImportThingModel(request *iotcore.ImportThingModelRequest) (*iotcore.ImportThingModelResponse, error)
导入物模型
func (*IotcoreClient) InvokeFunction ¶ added in v1.28.0
func (c *IotcoreClient) InvokeFunction(request *iotcore.InvokeFunctionRequest) (*iotcore.InvokeFunctionResponse, error)
设备方法执行
func (*IotcoreClient) InvokeThingService ¶
func (c *IotcoreClient) InvokeThingService(request *iotcore.InvokeThingServiceRequest) (*iotcore.InvokeThingServiceResponse, error)
设备服务调用
func (*IotcoreClient) InvokeThingTopic ¶ added in v1.13.0
func (c *IotcoreClient) InvokeThingTopic(request *iotcore.InvokeThingTopicRequest) (*iotcore.InvokeThingTopicResponse, error)
设备Topic调用
func (*IotcoreClient) ListProductAbilities ¶
func (c *IotcoreClient) ListProductAbilities(request *iotcore.ListProductAbilitiesRequest) (*iotcore.ListProductAbilitiesResponse, error)
查看产品功能列表接口
func (*IotcoreClient) ListProducts ¶
func (c *IotcoreClient) ListProducts(request *iotcore.ListProductsRequest) (*iotcore.ListProductsResponse, error)
查看产品列表接口
func (*IotcoreClient) ListProductsWithAdmin ¶ added in v1.28.0
func (c *IotcoreClient) ListProductsWithAdmin(request *iotcore.ListProductsWithAdminRequest) (*iotcore.ListProductsWithAdminResponse, error)
查看所有产品的列表
func (*IotcoreClient) LoongrayQueryPage ¶ added in v1.27.0
func (c *IotcoreClient) LoongrayQueryPage(request *iotcore.LoongrayQueryPageRequest) (*iotcore.LoongrayQueryPageResponse, error)
朗瑞分页查询设备信息,支持一个或多个条件
func (*IotcoreClient) QueryAdminStatistics ¶ added in v1.31.0
func (c *IotcoreClient) QueryAdminStatistics(request *iotcore.QueryAdminStatisticsRequest) (*iotcore.QueryAdminStatisticsResponse, error)
设备基本数据统计,包括设备数,激活数,在线数
func (*IotcoreClient) QueryDeviceDetail ¶
func (c *IotcoreClient) QueryDeviceDetail(request *iotcore.QueryDeviceDetailRequest) (*iotcore.QueryDeviceDetailResponse, error)
查询设备详情
func (*IotcoreClient) QueryDevicePage ¶
func (c *IotcoreClient) QueryDevicePage(request *iotcore.QueryDevicePageRequest) (*iotcore.QueryDevicePageResponse, error)
分页查询设备信息,支持一个或多个条件
func (*IotcoreClient) ReadHoldingRegisters ¶ added in v1.29.0
func (c *IotcoreClient) ReadHoldingRegisters(request *iotcore.ReadHoldingRegistersRequest) (*iotcore.ReadHoldingRegistersResponse, error)
(0x03)读保持寄存器
func (*IotcoreClient) RegisterDevice ¶ added in v1.34.0
func (c *IotcoreClient) RegisterDevice(request *iotcore.RegisterDeviceRequest) (*iotcore.RegisterDeviceResponse, error)
设备注册接口
func (*IotcoreClient) RemoveDevice ¶
func (c *IotcoreClient) RemoveDevice(request *iotcore.RemoveDeviceRequest) (*iotcore.RemoveDeviceResponse, error)
删除设备
func (*IotcoreClient) RemoveLoongrayDevice ¶ added in v1.27.0
func (c *IotcoreClient) RemoveLoongrayDevice(request *iotcore.RemoveLoongrayDeviceRequest) (*iotcore.RemoveLoongrayDeviceResponse, error)
删除设备
func (*IotcoreClient) SetConfig ¶
func (c *IotcoreClient) SetConfig(config *core.Config)
func (*IotcoreClient) SetDeviceProperty ¶ added in v1.34.0
func (c *IotcoreClient) SetDeviceProperty(request *iotcore.SetDevicePropertyRequest) (*iotcore.SetDevicePropertyResponse, error)
设备控制接口
func (*IotcoreClient) SetLogger ¶
func (c *IotcoreClient) SetLogger(logger core.Logger)
func (*IotcoreClient) UpdateDevice ¶
func (c *IotcoreClient) UpdateDevice(request *iotcore.UpdateDeviceRequest) (*iotcore.UpdateDeviceResponse, error)
修改设备详情
func (*IotcoreClient) UpdateDeviceTopo ¶ added in v1.34.0
func (c *IotcoreClient) UpdateDeviceTopo(request *iotcore.UpdateDeviceTopoRequest) (*iotcore.UpdateDeviceTopoResponse, error)
边缘代理设备与非直连设备拓扑关系更新接口
func (*IotcoreClient) UpdateLooDevice ¶ added in v1.27.0
func (c *IotcoreClient) UpdateLooDevice(request *iotcore.UpdateLooDeviceRequest) (*iotcore.UpdateLooDeviceResponse, error)
修改设备详情
func (*IotcoreClient) UpdateProduct ¶
func (c *IotcoreClient) UpdateProduct(request *iotcore.UpdateProductRequest) (*iotcore.UpdateProductResponse, error)
修改产品
func (*IotcoreClient) UpdateProductWithAdmin ¶ added in v1.28.0
func (c *IotcoreClient) UpdateProductWithAdmin(request *iotcore.UpdateProductWithAdminRequest) (*iotcore.UpdateProductWithAdminResponse, error)
修改产品
func (*IotcoreClient) UpdateThingShadow ¶
func (c *IotcoreClient) UpdateThingShadow(request *iotcore.UpdateThingShadowRequest) (*iotcore.UpdateThingShadowResponse, error)
更新设备影子的期望值
Click to show internal directories.
Click to hide internal directories.