Documentation ¶
Index ¶
- type IothubClient
- func (c *IothubClient) AddDevice(request *iothub.AddDeviceRequest) (*iothub.AddDeviceResponse, error)
- func (c *IothubClient) CreateProduct(request *iothub.CreateProductRequest) (*iothub.CreateProductResponse, error)
- func (c *IothubClient) DeleteProduct(request *iothub.DeleteProductRequest) (*iothub.DeleteProductResponse, error)
- func (c *IothubClient) DescribeProduct(request *iothub.DescribeProductRequest) (*iothub.DescribeProductResponse, error)
- func (c *IothubClient) DescribeThingShadow(request *iothub.DescribeThingShadowRequest) (*iothub.DescribeThingShadowResponse, error)
- func (c *IothubClient) DisableLogger()
- func (c *IothubClient) ExportThingModel(request *iothub.ExportThingModelRequest) (*iothub.ExportThingModelResponse, error)
- func (c *IothubClient) ImportThingModel(request *iothub.ImportThingModelRequest) (*iothub.ImportThingModelResponse, error)
- func (c *IothubClient) InvokeThingService(request *iothub.InvokeThingServiceRequest) (*iothub.InvokeThingServiceResponse, error)
- func (c *IothubClient) ListProductAbilities(request *iothub.ListProductAbilitiesRequest) (*iothub.ListProductAbilitiesResponse, error)
- func (c *IothubClient) ListProducts(request *iothub.ListProductsRequest) (*iothub.ListProductsResponse, error)
- func (c *IothubClient) QueryDeviceDetail(request *iothub.QueryDeviceDetailRequest) (*iothub.QueryDeviceDetailResponse, error)
- func (c *IothubClient) QueryDevicePage(request *iothub.QueryDevicePageRequest) (*iothub.QueryDevicePageResponse, error)
- func (c *IothubClient) RemoveDevice(request *iothub.RemoveDeviceRequest) (*iothub.RemoveDeviceResponse, error)
- func (c *IothubClient) RemoveDeviceById(request *iothub.RemoveDeviceByIdRequest) (*iothub.RemoveDeviceByIdResponse, error)
- func (c *IothubClient) SetConfig(config *core.Config)
- func (c *IothubClient) SetLogger(logger core.Logger)
- func (c *IothubClient) UpdateDevice(request *iothub.UpdateDeviceRequest) (*iothub.UpdateDeviceResponse, error)
- func (c *IothubClient) UpdateProduct(request *iothub.UpdateProductRequest) (*iothub.UpdateProductResponse, error)
- func (c *IothubClient) UpdateThingShadow(request *iothub.UpdateThingShadowRequest) (*iothub.UpdateThingShadowResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IothubClient ¶
type IothubClient struct {
core.JDCloudClient
}
func NewIothubClient ¶
func NewIothubClient(credential *core.Credential) *IothubClient
func (*IothubClient) AddDevice ¶ added in v1.13.0
func (c *IothubClient) AddDevice(request *iothub.AddDeviceRequest) (*iothub.AddDeviceResponse, error)
注册单个设备并返回秘钥信息
func (*IothubClient) CreateProduct ¶ added in v1.13.0
func (c *IothubClient) CreateProduct(request *iothub.CreateProductRequest) (*iothub.CreateProductResponse, error)
新建产品
func (*IothubClient) DeleteProduct ¶ added in v1.13.0
func (c *IothubClient) DeleteProduct(request *iothub.DeleteProductRequest) (*iothub.DeleteProductResponse, error)
删除产品
func (*IothubClient) DescribeProduct ¶ added in v1.13.0
func (c *IothubClient) DescribeProduct(request *iothub.DescribeProductRequest) (*iothub.DescribeProductResponse, error)
查看产品
func (*IothubClient) DescribeThingShadow ¶ added in v1.13.0
func (c *IothubClient) DescribeThingShadow(request *iothub.DescribeThingShadowRequest) (*iothub.DescribeThingShadowResponse, error)
查看设备影子
func (*IothubClient) DisableLogger ¶ added in v1.13.0
func (c *IothubClient) DisableLogger()
func (*IothubClient) ExportThingModel ¶ added in v1.13.0
func (c *IothubClient) ExportThingModel(request *iothub.ExportThingModelRequest) (*iothub.ExportThingModelResponse, error)
导出物模型
func (*IothubClient) ImportThingModel ¶ added in v1.13.0
func (c *IothubClient) ImportThingModel(request *iothub.ImportThingModelRequest) (*iothub.ImportThingModelResponse, error)
导入物模型
func (*IothubClient) InvokeThingService ¶ added in v1.13.0
func (c *IothubClient) InvokeThingService(request *iothub.InvokeThingServiceRequest) (*iothub.InvokeThingServiceResponse, error)
设备服务调用
func (*IothubClient) ListProductAbilities ¶ added in v1.13.0
func (c *IothubClient) ListProductAbilities(request *iothub.ListProductAbilitiesRequest) (*iothub.ListProductAbilitiesResponse, error)
查看产品功能列表接口
func (*IothubClient) ListProducts ¶ added in v1.13.0
func (c *IothubClient) ListProducts(request *iothub.ListProductsRequest) (*iothub.ListProductsResponse, error)
查看产品列表接口
func (*IothubClient) QueryDeviceDetail ¶ added in v1.13.0
func (c *IothubClient) QueryDeviceDetail(request *iothub.QueryDeviceDetailRequest) (*iothub.QueryDeviceDetailResponse, error)
查询设备详情
func (*IothubClient) QueryDevicePage ¶ added in v1.13.0
func (c *IothubClient) QueryDevicePage(request *iothub.QueryDevicePageRequest) (*iothub.QueryDevicePageResponse, error)
分页查询设备信息,支持一个或多个条件
func (*IothubClient) RemoveDevice ¶ added in v1.13.0
func (c *IothubClient) RemoveDevice(request *iothub.RemoveDeviceRequest) (*iothub.RemoveDeviceResponse, error)
删除设备
func (*IothubClient) RemoveDeviceById ¶ added in v1.13.0
func (c *IothubClient) RemoveDeviceById(request *iothub.RemoveDeviceByIdRequest) (*iothub.RemoveDeviceByIdResponse, error)
删除设备
func (*IothubClient) SetConfig ¶
func (c *IothubClient) SetConfig(config *core.Config)
func (*IothubClient) SetLogger ¶
func (c *IothubClient) SetLogger(logger core.Logger)
func (*IothubClient) UpdateDevice ¶ added in v1.13.0
func (c *IothubClient) UpdateDevice(request *iothub.UpdateDeviceRequest) (*iothub.UpdateDeviceResponse, error)
修改设备详情
func (*IothubClient) UpdateProduct ¶ added in v1.13.0
func (c *IothubClient) UpdateProduct(request *iothub.UpdateProductRequest) (*iothub.UpdateProductResponse, error)
修改产品
func (*IothubClient) UpdateThingShadow ¶ added in v1.13.0
func (c *IothubClient) UpdateThingShadow(request *iothub.UpdateThingShadowRequest) (*iothub.UpdateThingShadowResponse, error)
更新设备影子的期望值
Click to show internal directories.
Click to hide internal directories.