Documentation
¶
Index ¶
- type IothubClient
- func (c *IothubClient) DeviceActivate(request *iothub.DeviceActivateRequest) (*iothub.DeviceActivateResponse, error)
- func (c *IothubClient) DeviceCommand(request *iothub.DeviceCommandRequest) (*iothub.DeviceCommandResponse, error)
- func (c *IothubClient) DeviceState(request *iothub.DeviceStateRequest) (*iothub.DeviceStateResponse, error)
- func (c *IothubClient) DevicesEnroll(request *iothub.DevicesEnrollRequest) (*iothub.DevicesEnrollResponse, error)
- func (c *IothubClient) ModuleEnroll(request *iothub.ModuleEnrollRequest) (*iothub.ModuleEnrollResponse, error)
- func (c *IothubClient) ModuleState(request *iothub.ModuleStateRequest) (*iothub.ModuleStateResponse, error)
- func (c *IothubClient) OmEnroll(request *iothub.OmEnrollRequest) (*iothub.OmEnrollResponse, error)
- func (c *IothubClient) SetConfig(config *core.Config)
- func (c *IothubClient) SetLogger(logger core.Logger)
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) DeviceActivate ¶
func (c *IothubClient) DeviceActivate(request *iothub.DeviceActivateRequest) (*iothub.DeviceActivateResponse, error)
激活一个设备,包括Edge、Dragon和普通设备
func (*IothubClient) DeviceCommand ¶
func (c *IothubClient) DeviceCommand(request *iothub.DeviceCommandRequest) (*iothub.DeviceCommandResponse, error)
客户用该接口可以对设备下发命令
func (*IothubClient) DeviceState ¶
func (c *IothubClient) DeviceState(request *iothub.DeviceStateRequest) (*iothub.DeviceStateResponse, error)
客户用该接口可以修改设备预期状态
func (*IothubClient) DevicesEnroll ¶
func (c *IothubClient) DevicesEnroll(request *iothub.DevicesEnrollRequest) (*iothub.DevicesEnrollResponse, error)
客户用该接口可以批量登记设备
func (*IothubClient) ModuleEnroll ¶
func (c *IothubClient) ModuleEnroll(request *iothub.ModuleEnrollRequest) (*iothub.ModuleEnrollResponse, error)
客户用该接口可以登记模块
func (*IothubClient) ModuleState ¶
func (c *IothubClient) ModuleState(request *iothub.ModuleStateRequest) (*iothub.ModuleStateResponse, error)
客户用该接口可以修改模块预期状态
func (*IothubClient) OmEnroll ¶
func (c *IothubClient) OmEnroll(request *iothub.OmEnrollRequest) (*iothub.OmEnrollResponse, error)
物模型注册接口
func (*IothubClient) SetConfig ¶
func (c *IothubClient) SetConfig(config *core.Config)
func (*IothubClient) SetLogger ¶
func (c *IothubClient) SetLogger(logger core.Logger)
Click to show internal directories.
Click to hide internal directories.