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) 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) DeleteProduct(request *iotcore.DeleteProductRequest) (*iotcore.DeleteProductResponse, error)
- func (c *IotcoreClient) DeleteProductWithAdmin(request *iotcore.DeleteProductWithAdminRequest) (*iotcore.DeleteProductWithAdminResponse, 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) DescribeThingModel(request *iotcore.DescribeThingModelRequest) (*iotcore.DescribeThingModelResponse, error)
- func (c *IotcoreClient) DescribeThingShadow(request *iotcore.DescribeThingShadowRequest) (*iotcore.DescribeThingShadowResponse, error)
- func (c *IotcoreClient) DevicePropertySet(request *iotcore.DevicePropertySetRequest) (*iotcore.DevicePropertySetResponse, error)
- func (c *IotcoreClient) DeviceQuery(request *iotcore.DeviceQueryRequest) (*iotcore.DeviceQueryResponse, error)
- func (c *IotcoreClient) DeviceRegister(request *iotcore.DeviceRegisterRequest) (*iotcore.DeviceRegisterResponse, error)
- func (c *IotcoreClient) DisableLogger()
- func (c *IotcoreClient) DownloadCertificate(request *iotcore.DownloadCertificateRequest) (*iotcore.DownloadCertificateResponse, error)
- func (c *IotcoreClient) ElevatorOperatingStatus(request *iotcore.ElevatorOperatingStatusRequest) (*iotcore.ElevatorOperatingStatusResponse, error)
- func (c *IotcoreClient) EventList(request *iotcore.EventListRequest) (*iotcore.EventListResponse, error)
- func (c *IotcoreClient) ExportThingModel(request *iotcore.ExportThingModelRequest) (*iotcore.ExportThingModelResponse, error)
- func (c *IotcoreClient) FunctionList(request *iotcore.FunctionListRequest) (*iotcore.FunctionListResponse, error)
- func (c *IotcoreClient) GetPropertySnapshot(request *iotcore.GetPropertySnapshotRequest) (*iotcore.GetPropertySnapshotResponse, 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) PropertyAcquire(request *iotcore.PropertyAcquireRequest) (*iotcore.PropertyAcquireResponse, 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) 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) SetLogger(logger core.Logger)
- func (c *IotcoreClient) ThingTypeDescribe(request *iotcore.ThingTypeDescribeRequest) (*iotcore.ThingTypeDescribeResponse, error)
- func (c *IotcoreClient) ThingTypeList(request *iotcore.ThingTypeListRequest) (*iotcore.ThingTypeListResponse, error)
- func (c *IotcoreClient) UpdateDevice(request *iotcore.UpdateDeviceRequest) (*iotcore.UpdateDeviceResponse, 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) 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) 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) 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) DescribeThingModel ¶ added in v1.29.0
func (c *IotcoreClient) DescribeThingModel(request *iotcore.DescribeThingModelRequest) (*iotcore.DescribeThingModelResponse, error)
根据模型ID查看物模型完整信息
func (*IotcoreClient) DescribeThingShadow ¶
func (c *IotcoreClient) DescribeThingShadow(request *iotcore.DescribeThingShadowRequest) (*iotcore.DescribeThingShadowResponse, error)
查看设备影子
func (*IotcoreClient) DevicePropertySet ¶ added in v1.28.0
func (c *IotcoreClient) DevicePropertySet(request *iotcore.DevicePropertySetRequest) (*iotcore.DevicePropertySetResponse, error)
设备控制接口
func (*IotcoreClient) DeviceQuery ¶ added in v1.28.0
func (c *IotcoreClient) DeviceQuery(request *iotcore.DeviceQueryRequest) (*iotcore.DeviceQueryResponse, error)
查询单个设备详细信息
func (*IotcoreClient) DeviceRegister ¶ added in v1.28.0
func (c *IotcoreClient) DeviceRegister(request *iotcore.DeviceRegisterRequest) (*iotcore.DeviceRegisterResponse, error)
设备注册接口
func (*IotcoreClient) DisableLogger ¶ added in v1.13.0
func (c *IotcoreClient) DisableLogger()
func (*IotcoreClient) DownloadCertificate ¶ added in v1.28.0
func (c *IotcoreClient) DownloadCertificate(request *iotcore.DownloadCertificateRequest) (*iotcore.DownloadCertificateResponse, error)
下载设备证书接口
func (*IotcoreClient) ElevatorOperatingStatus ¶ added in v1.28.0
func (c *IotcoreClient) ElevatorOperatingStatus(request *iotcore.ElevatorOperatingStatusRequest) (*iotcore.ElevatorOperatingStatusResponse, error)
获取电梯运行状态
func (*IotcoreClient) EventList ¶ added in v1.28.0
func (c *IotcoreClient) EventList(request *iotcore.EventListRequest) (*iotcore.EventListResponse, error)
设备事件查询
func (*IotcoreClient) ExportThingModel ¶
func (c *IotcoreClient) ExportThingModel(request *iotcore.ExportThingModelRequest) (*iotcore.ExportThingModelResponse, error)
导出物模型
func (*IotcoreClient) FunctionList ¶ added in v1.28.0
func (c *IotcoreClient) FunctionList(request *iotcore.FunctionListRequest) (*iotcore.FunctionListResponse, error)
查询方法调用列表信息
func (*IotcoreClient) GetPropertySnapshot ¶ added in v1.30.0
func (c *IotcoreClient) GetPropertySnapshot(request *iotcore.GetPropertySnapshotRequest) (*iotcore.GetPropertySnapshotResponse, 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) PropertyAcquire ¶ added in v1.30.0
func (c *IotcoreClient) PropertyAcquire(request *iotcore.PropertyAcquireRequest) (*iotcore.PropertyAcquireResponse, 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) 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) SetLogger ¶
func (c *IotcoreClient) SetLogger(logger core.Logger)
func (*IotcoreClient) ThingTypeDescribe ¶ added in v1.28.0
func (c *IotcoreClient) ThingTypeDescribe(request *iotcore.ThingTypeDescribeRequest) (*iotcore.ThingTypeDescribeResponse, error)
查询物类型详情
func (*IotcoreClient) ThingTypeList ¶ added in v1.28.0
func (c *IotcoreClient) ThingTypeList(request *iotcore.ThingTypeListRequest) (*iotcore.ThingTypeListResponse, error)
查询物类型列表
func (*IotcoreClient) UpdateDevice ¶
func (c *IotcoreClient) UpdateDevice(request *iotcore.UpdateDeviceRequest) (*iotcore.UpdateDeviceResponse, 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.