Documentation ¶
Index ¶
- type IothubClient
- func (c *IothubClient) CheckDeviceId(request *iothub.CheckDeviceIdRequest) (*iothub.CheckDeviceIdResponse, error)
- func (c *IothubClient) DeleteDevice(request *iothub.DeleteDeviceRequest) (*iothub.DeleteDeviceResponse, error)
- 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) GetOMPrivateURL(request *iothub.GetOMPrivateURLRequest) (*iothub.GetOMPrivateURLResponse, error)
- func (c *IothubClient) ModuleEnrollment(request *iothub.ModuleEnrollmentRequest) (*iothub.ModuleEnrollmentResponse, error)
- func (c *IothubClient) ModuleState(request *iothub.ModuleStateRequest) (*iothub.ModuleStateResponse, error)
- func (c *IothubClient) OmEnroll(request *iothub.OmEnrollRequest) (*iothub.OmEnrollResponse, error)
- func (c *IothubClient) OmEnrollbyFile(request *iothub.OmEnrollbyFileRequest) (*iothub.OmEnrollbyFileResponse, error)
- func (c *IothubClient) QueryDeviceCommands(request *iothub.QueryDeviceCommandsRequest) (*iothub.QueryDeviceCommandsResponse, error)
- func (c *IothubClient) QueryDeviceOnlineInfos(request *iothub.QueryDeviceOnlineInfosRequest) (*iothub.QueryDeviceOnlineInfosResponse, error)
- func (c *IothubClient) QueryDeviceStates(request *iothub.QueryDeviceStatesRequest) (*iothub.QueryDeviceStatesResponse, 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) CheckDeviceId ¶ added in v1.8.0
func (c *IothubClient) CheckDeviceId(request *iothub.CheckDeviceIdRequest) (*iothub.CheckDeviceIdResponse, error)
验证DeviceId是否可用
func (*IothubClient) DeleteDevice ¶ added in v1.6.0
func (c *IothubClient) DeleteDevice(request *iothub.DeleteDeviceRequest) (*iothub.DeleteDeviceResponse, error)
删除设备
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) GetOMPrivateURL ¶ added in v1.6.0
func (c *IothubClient) GetOMPrivateURL(request *iothub.GetOMPrivateURLRequest) (*iothub.GetOMPrivateURLResponse, error)
获取下载物模型的外链地址
func (*IothubClient) ModuleEnrollment ¶ added in v1.8.0
func (c *IothubClient) ModuleEnrollment(request *iothub.ModuleEnrollmentRequest) (*iothub.ModuleEnrollmentResponse, 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) OmEnrollbyFile ¶ added in v1.6.0
func (c *IothubClient) OmEnrollbyFile(request *iothub.OmEnrollbyFileRequest) (*iothub.OmEnrollbyFileResponse, error)
物模型通过文件上传注册接口
func (*IothubClient) QueryDeviceCommands ¶ added in v1.6.0
func (c *IothubClient) QueryDeviceCommands(request *iothub.QueryDeviceCommandsRequest) (*iothub.QueryDeviceCommandsResponse, error)
客户用该接口可以查询设备命令列表
func (*IothubClient) QueryDeviceOnlineInfos ¶ added in v1.6.0
func (c *IothubClient) QueryDeviceOnlineInfos(request *iothub.QueryDeviceOnlineInfosRequest) (*iothub.QueryDeviceOnlineInfosResponse, error)
查询设备在线信息
func (*IothubClient) QueryDeviceStates ¶ added in v1.6.0
func (c *IothubClient) QueryDeviceStates(request *iothub.QueryDeviceStatesRequest) (*iothub.QueryDeviceStatesResponse, 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.