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 ¶
func (c *IothubClient) AddDevice(request *iothub.AddDeviceRequest) (*iothub.AddDeviceResponse, error)
注册单个设备并返回秘钥信息
func (*IothubClient) CreateProduct ¶
func (c *IothubClient) CreateProduct(request *iothub.CreateProductRequest) (*iothub.CreateProductResponse, error)
新建产品
func (*IothubClient) DeleteProduct ¶
func (c *IothubClient) DeleteProduct(request *iothub.DeleteProductRequest) (*iothub.DeleteProductResponse, error)
删除产品
func (*IothubClient) DescribeProduct ¶
func (c *IothubClient) DescribeProduct(request *iothub.DescribeProductRequest) (*iothub.DescribeProductResponse, error)
查看产品
func (*IothubClient) DescribeThingShadow ¶
func (c *IothubClient) DescribeThingShadow(request *iothub.DescribeThingShadowRequest) (*iothub.DescribeThingShadowResponse, error)
查看设备影子
func (*IothubClient) DisableLogger ¶
func (c *IothubClient) DisableLogger()
func (*IothubClient) ExportThingModel ¶
func (c *IothubClient) ExportThingModel(request *iothub.ExportThingModelRequest) (*iothub.ExportThingModelResponse, error)
导出物模型
func (*IothubClient) ImportThingModel ¶
func (c *IothubClient) ImportThingModel(request *iothub.ImportThingModelRequest) (*iothub.ImportThingModelResponse, error)
导入物模型
func (*IothubClient) InvokeThingService ¶
func (c *IothubClient) InvokeThingService(request *iothub.InvokeThingServiceRequest) (*iothub.InvokeThingServiceResponse, error)
设备服务调用
func (*IothubClient) ListProductAbilities ¶
func (c *IothubClient) ListProductAbilities(request *iothub.ListProductAbilitiesRequest) (*iothub.ListProductAbilitiesResponse, error)
查看产品功能列表接口
func (*IothubClient) ListProducts ¶
func (c *IothubClient) ListProducts(request *iothub.ListProductsRequest) (*iothub.ListProductsResponse, error)
查看产品列表接口
func (*IothubClient) QueryDeviceDetail ¶
func (c *IothubClient) QueryDeviceDetail(request *iothub.QueryDeviceDetailRequest) (*iothub.QueryDeviceDetailResponse, error)
查询设备详情
func (*IothubClient) QueryDevicePage ¶
func (c *IothubClient) QueryDevicePage(request *iothub.QueryDevicePageRequest) (*iothub.QueryDevicePageResponse, error)
分页查询设备信息,支持一个或多个条件
func (*IothubClient) RemoveDevice ¶
func (c *IothubClient) RemoveDevice(request *iothub.RemoveDeviceRequest) (*iothub.RemoveDeviceResponse, error)
删除设备
func (*IothubClient) RemoveDeviceById ¶
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 ¶
func (c *IothubClient) UpdateDevice(request *iothub.UpdateDeviceRequest) (*iothub.UpdateDeviceResponse, error)
修改设备详情
func (*IothubClient) UpdateProduct ¶
func (c *IothubClient) UpdateProduct(request *iothub.UpdateProductRequest) (*iothub.UpdateProductResponse, error)
修改产品
func (*IothubClient) UpdateThingShadow ¶
func (c *IothubClient) UpdateThingShadow(request *iothub.UpdateThingShadowRequest) (*iothub.UpdateThingShadowResponse, error)
更新设备影子的期望值
Click to show internal directories.
Click to hide internal directories.