Documentation
¶
Index ¶
- type IotcoreClient
- func (c *IotcoreClient) AddDevice(request *iotcore.AddDeviceRequest) (*iotcore.AddDeviceResponse, error)
- func (c *IotcoreClient) CreateProduct(request *iotcore.CreateProductRequest) (*iotcore.CreateProductResponse, error)
- func (c *IotcoreClient) CreateProductTopic(request *iotcore.CreateProductTopicRequest) (*iotcore.CreateProductTopicResponse, error)
- func (c *IotcoreClient) DeleteProduct(request *iotcore.DeleteProductRequest) (*iotcore.DeleteProductResponse, error)
- func (c *IotcoreClient) DescribeProduct(request *iotcore.DescribeProductRequest) (*iotcore.DescribeProductResponse, error)
- func (c *IotcoreClient) DescribeThingShadow(request *iotcore.DescribeThingShadowRequest) (*iotcore.DescribeThingShadowResponse, error)
- func (c *IotcoreClient) DisableLogger()
- func (c *IotcoreClient) ExportThingModel(request *iotcore.ExportThingModelRequest) (*iotcore.ExportThingModelResponse, error)
- func (c *IotcoreClient) ImportThingModel(request *iotcore.ImportThingModelRequest) (*iotcore.ImportThingModelResponse, 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) QueryDeviceDetail(request *iotcore.QueryDeviceDetailRequest) (*iotcore.QueryDeviceDetailResponse, error)
- func (c *IotcoreClient) QueryDevicePage(request *iotcore.QueryDevicePageRequest) (*iotcore.QueryDevicePageResponse, error)
- func (c *IotcoreClient) RemoveDevice(request *iotcore.RemoveDeviceRequest) (*iotcore.RemoveDeviceResponse, error)
- func (c *IotcoreClient) SetConfig(config *core.Config)
- func (c *IotcoreClient) SetLogger(logger core.Logger)
- func (c *IotcoreClient) UpdateDevice(request *iotcore.UpdateDeviceRequest) (*iotcore.UpdateDeviceResponse, error)
- func (c *IotcoreClient) UpdateProduct(request *iotcore.UpdateProductRequest) (*iotcore.UpdateProductResponse, 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) 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) DeleteProduct ¶
func (c *IotcoreClient) DeleteProduct(request *iotcore.DeleteProductRequest) (*iotcore.DeleteProductResponse, error)
删除产品
func (*IotcoreClient) DescribeProduct ¶
func (c *IotcoreClient) DescribeProduct(request *iotcore.DescribeProductRequest) (*iotcore.DescribeProductResponse, error)
查看产品
func (*IotcoreClient) DescribeThingShadow ¶
func (c *IotcoreClient) DescribeThingShadow(request *iotcore.DescribeThingShadowRequest) (*iotcore.DescribeThingShadowResponse, error)
查看设备影子
func (*IotcoreClient) DisableLogger ¶ added in v1.13.0
func (c *IotcoreClient) DisableLogger()
func (*IotcoreClient) ExportThingModel ¶
func (c *IotcoreClient) ExportThingModel(request *iotcore.ExportThingModelRequest) (*iotcore.ExportThingModelResponse, error)
导出物模型
func (*IotcoreClient) ImportThingModel ¶
func (c *IotcoreClient) ImportThingModel(request *iotcore.ImportThingModelRequest) (*iotcore.ImportThingModelResponse, 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) 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) RemoveDevice ¶
func (c *IotcoreClient) RemoveDevice(request *iotcore.RemoveDeviceRequest) (*iotcore.RemoveDeviceResponse, error)
删除设备
func (*IotcoreClient) SetConfig ¶
func (c *IotcoreClient) SetConfig(config *core.Config)
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) UpdateProduct ¶
func (c *IotcoreClient) UpdateProduct(request *iotcore.UpdateProductRequest) (*iotcore.UpdateProductResponse, error)
修改产品
func (*IotcoreClient) UpdateThingShadow ¶
func (c *IotcoreClient) UpdateThingShadow(request *iotcore.UpdateThingShadowRequest) (*iotcore.UpdateThingShadowResponse, error)
更新设备影子的期望值
Click to show internal directories.
Click to hide internal directories.