Class IotClient
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractClient
-
- com.tencentcloudapi.iot.v20180123.IotClient
-
public class IotClient extends AbstractClient
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
-
-
Constructor Summary
Constructors Constructor Description IotClient(Credential credential, String region)
IotClient(Credential credential, String region, ClientProfile profile)
-
Method Summary
-
Methods inherited from class com.tencentcloudapi.common.AbstractClient
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
-
-
-
-
Constructor Detail
-
IotClient
public IotClient(Credential credential, String region)
-
IotClient
public IotClient(Credential credential, String region, ClientProfile profile)
-
-
Method Detail
-
ActivateRule
public ActivateRuleResponse ActivateRule(ActivateRuleRequest req) throws TencentCloudSDKException
启用规则- Parameters:
req
- ActivateRuleRequest- Returns:
- ActivateRuleResponse
- Throws:
TencentCloudSDKException
-
AddDevice
public AddDeviceResponse AddDevice(AddDeviceRequest req) throws TencentCloudSDKException
提供在指定的产品Id下创建一个设备的能力,生成设备名称与设备秘钥。- Parameters:
req
- AddDeviceRequest- Returns:
- AddDeviceResponse
- Throws:
TencentCloudSDKException
-
AddProduct
public AddProductResponse AddProduct(AddProductRequest req) throws TencentCloudSDKException
本接口(AddProduct)用于创建、定义某款硬件产品。- Parameters:
req
- AddProductRequest- Returns:
- AddProductResponse
- Throws:
TencentCloudSDKException
-
AddRule
public AddRuleResponse AddRule(AddRuleRequest req) throws TencentCloudSDKException
新增规则- Parameters:
req
- AddRuleRequest- Returns:
- AddRuleResponse
- Throws:
TencentCloudSDKException
-
AddTopic
public AddTopicResponse AddTopic(AddTopicRequest req) throws TencentCloudSDKException
新增Topic,用于设备或应用发布消息至该Topic或订阅该Topic的消息。- Parameters:
req
- AddTopicRequest- Returns:
- AddTopicResponse
- Throws:
TencentCloudSDKException
-
AppAddUser
public AppAddUserResponse AppAddUser(AppAddUserRequest req) throws TencentCloudSDKException
为APP提供用户注册功能- Parameters:
req
- AppAddUserRequest- Returns:
- AppAddUserResponse
- Throws:
TencentCloudSDKException
-
AppDeleteDevice
public AppDeleteDeviceResponse AppDeleteDevice(AppDeleteDeviceRequest req) throws TencentCloudSDKException
用户解除与设备的关联关系,解除后APP用户无法控制设备,获取设备数据- Parameters:
req
- AppDeleteDeviceRequest- Returns:
- AppDeleteDeviceResponse
- Throws:
TencentCloudSDKException
-
AppGetDevice
public AppGetDeviceResponse AppGetDevice(AppGetDeviceRequest req) throws TencentCloudSDKException
获取绑定设备的基本信息与数据模板定义- Parameters:
req
- AppGetDeviceRequest- Returns:
- AppGetDeviceResponse
- Throws:
TencentCloudSDKException
-
AppGetDeviceData
public AppGetDeviceDataResponse AppGetDeviceData(AppGetDeviceDataRequest req) throws TencentCloudSDKException
获取绑定设备数据,用于实时展示设备的最新数据- Parameters:
req
- AppGetDeviceDataRequest- Returns:
- AppGetDeviceDataResponse
- Throws:
TencentCloudSDKException
-
AppGetDeviceStatuses
public AppGetDeviceStatusesResponse AppGetDeviceStatuses(AppGetDeviceStatusesRequest req) throws TencentCloudSDKException
获取绑定设备的上下线状态- Parameters:
req
- AppGetDeviceStatusesRequest- Returns:
- AppGetDeviceStatusesResponse
- Throws:
TencentCloudSDKException
-
AppGetDevices
public AppGetDevicesResponse AppGetDevices(AppGetDevicesRequest req) throws TencentCloudSDKException
获取用户的绑定设备列表- Parameters:
req
- AppGetDevicesRequest- Returns:
- AppGetDevicesResponse
- Throws:
TencentCloudSDKException
-
AppGetToken
public AppGetTokenResponse AppGetToken(AppGetTokenRequest req) throws TencentCloudSDKException
获取用户token- Parameters:
req
- AppGetTokenRequest- Returns:
- AppGetTokenResponse
- Throws:
TencentCloudSDKException
-
AppGetUser
public AppGetUserResponse AppGetUser(AppGetUserRequest req) throws TencentCloudSDKException
获取用户信息- Parameters:
req
- AppGetUserRequest- Returns:
- AppGetUserResponse
- Throws:
TencentCloudSDKException
-
AppIssueDeviceControl
public AppIssueDeviceControlResponse AppIssueDeviceControl(AppIssueDeviceControlRequest req) throws TencentCloudSDKException
用户通过APP控制设备- Parameters:
req
- AppIssueDeviceControlRequest- Returns:
- AppIssueDeviceControlResponse
- Throws:
TencentCloudSDKException
-
AppResetPassword
public AppResetPasswordResponse AppResetPassword(AppResetPasswordRequest req) throws TencentCloudSDKException
重置APP用户密码- Parameters:
req
- AppResetPasswordRequest- Returns:
- AppResetPasswordResponse
- Throws:
TencentCloudSDKException
-
AppSecureAddDevice
public AppSecureAddDeviceResponse AppSecureAddDevice(AppSecureAddDeviceRequest req) throws TencentCloudSDKException
用户绑定设备,绑定后可以在APP端进行控制。绑定设备前需调用“获取设备绑定签名”接口- Parameters:
req
- AppSecureAddDeviceRequest- Returns:
- AppSecureAddDeviceResponse
- Throws:
TencentCloudSDKException
-
AppUpdateDevice
public AppUpdateDeviceResponse AppUpdateDevice(AppUpdateDeviceRequest req) throws TencentCloudSDKException
修改设备别名,便于用户个性化定义设备的名称- Parameters:
req
- AppUpdateDeviceRequest- Returns:
- AppUpdateDeviceResponse
- Throws:
TencentCloudSDKException
-
AppUpdateUser
public AppUpdateUserResponse AppUpdateUser(AppUpdateUserRequest req) throws TencentCloudSDKException
修改用户信息- Parameters:
req
- AppUpdateUserRequest- Returns:
- AppUpdateUserResponse
- Throws:
TencentCloudSDKException
-
AssociateSubDeviceToGatewayProduct
public AssociateSubDeviceToGatewayProductResponse AssociateSubDeviceToGatewayProduct(AssociateSubDeviceToGatewayProductRequest req) throws TencentCloudSDKException
关联子设备产品和网关产品- Parameters:
req
- AssociateSubDeviceToGatewayProductRequest- Returns:
- AssociateSubDeviceToGatewayProductResponse
- Throws:
TencentCloudSDKException
-
DeactivateRule
public DeactivateRuleResponse DeactivateRule(DeactivateRuleRequest req) throws TencentCloudSDKException
禁用规则- Parameters:
req
- DeactivateRuleRequest- Returns:
- DeactivateRuleResponse
- Throws:
TencentCloudSDKException
-
DeleteDevice
public DeleteDeviceResponse DeleteDevice(DeleteDeviceRequest req) throws TencentCloudSDKException
提供在指定的产品Id下删除一个设备的能力。- Parameters:
req
- DeleteDeviceRequest- Returns:
- DeleteDeviceResponse
- Throws:
TencentCloudSDKException
-
DeleteProduct
public DeleteProductResponse DeleteProduct(DeleteProductRequest req) throws TencentCloudSDKException
删除用户指定的产品Id对应的信息。- Parameters:
req
- DeleteProductRequest- Returns:
- DeleteProductResponse
- Throws:
TencentCloudSDKException
-
DeleteRule
public DeleteRuleResponse DeleteRule(DeleteRuleRequest req) throws TencentCloudSDKException
删除规则- Parameters:
req
- DeleteRuleRequest- Returns:
- DeleteRuleResponse
- Throws:
TencentCloudSDKException
-
DeleteTopic
public DeleteTopicResponse DeleteTopic(DeleteTopicRequest req) throws TencentCloudSDKException
删除Topic- Parameters:
req
- DeleteTopicRequest- Returns:
- DeleteTopicResponse
- Throws:
TencentCloudSDKException
-
GetDataHistory
public GetDataHistoryResponse GetDataHistory(GetDataHistoryRequest req) throws TencentCloudSDKException
批量获取设备某一段时间范围的设备上报数据。该接口适用于使用高级版类型的产品- Parameters:
req
- GetDataHistoryRequest- Returns:
- GetDataHistoryResponse
- Throws:
TencentCloudSDKException
-
GetDebugLog
public GetDebugLogResponse GetDebugLog(GetDebugLogRequest req) throws TencentCloudSDKException
获取设备的调试日志,用于定位问题- Parameters:
req
- GetDebugLogRequest- Returns:
- GetDebugLogResponse
- Throws:
TencentCloudSDKException
-
GetDevice
public GetDeviceResponse GetDevice(GetDeviceRequest req) throws TencentCloudSDKException
提供查询某个设备详细信息的能力。- Parameters:
req
- GetDeviceRequest- Returns:
- GetDeviceResponse
- Throws:
TencentCloudSDKException
-
GetDeviceData
public GetDeviceDataResponse GetDeviceData(GetDeviceDataRequest req) throws TencentCloudSDKException
获取某个设备当前上报到云端的数据,该接口适用于使用数据模板协议的产品。- Parameters:
req
- GetDeviceDataRequest- Returns:
- GetDeviceDataResponse
- Throws:
TencentCloudSDKException
-
GetDeviceLog
public GetDeviceLogResponse GetDeviceLog(GetDeviceLogRequest req) throws TencentCloudSDKException
批量获取设备与云端的详细通信日志,该接口适用于使用高级版类型的产品。- Parameters:
req
- GetDeviceLogRequest- Returns:
- GetDeviceLogResponse
- Throws:
TencentCloudSDKException
-
GetDeviceSignatures
public GetDeviceSignaturesResponse GetDeviceSignatures(GetDeviceSignaturesRequest req) throws TencentCloudSDKException
获取设备绑定签名,用于用户绑定某个设备的应用场景- Parameters:
req
- GetDeviceSignaturesRequest- Returns:
- GetDeviceSignaturesResponse
- Throws:
TencentCloudSDKException
-
GetDeviceStatistics
public GetDeviceStatisticsResponse GetDeviceStatistics(GetDeviceStatisticsRequest req) throws TencentCloudSDKException
查询某段时间范围内产品的在线、激活设备数- Parameters:
req
- GetDeviceStatisticsRequest- Returns:
- GetDeviceStatisticsResponse
- Throws:
TencentCloudSDKException
-
GetDeviceStatuses
public GetDeviceStatusesResponse GetDeviceStatuses(GetDeviceStatusesRequest req) throws TencentCloudSDKException
批量获取设备的当前状态,状态包括在线、离线或未激活状态。- Parameters:
req
- GetDeviceStatusesRequest- Returns:
- GetDeviceStatusesResponse
- Throws:
TencentCloudSDKException
-
GetDevices
public GetDevicesResponse GetDevices(GetDevicesRequest req) throws TencentCloudSDKException
提供分页查询某个产品Id下设备信息的能力。- Parameters:
req
- GetDevicesRequest- Returns:
- GetDevicesResponse
- Throws:
TencentCloudSDKException
-
GetProduct
public GetProductResponse GetProduct(GetProductRequest req) throws TencentCloudSDKException
获取产品定义的详细信息,包括产品名称、产品描述,鉴权模式等信息。- Parameters:
req
- GetProductRequest- Returns:
- GetProductResponse
- Throws:
TencentCloudSDKException
-
GetProducts
public GetProductsResponse GetProducts(GetProductsRequest req) throws TencentCloudSDKException
获取用户在物联网套件所创建的所有产品信息。- Parameters:
req
- GetProductsRequest- Returns:
- GetProductsResponse
- Throws:
TencentCloudSDKException
-
GetRule
public GetRuleResponse GetRule(GetRuleRequest req) throws TencentCloudSDKException
获取转发规则信息- Parameters:
req
- GetRuleRequest- Returns:
- GetRuleResponse
- Throws:
TencentCloudSDKException
-
GetRules
public GetRulesResponse GetRules(GetRulesRequest req) throws TencentCloudSDKException
获取转发规则列表- Parameters:
req
- GetRulesRequest- Returns:
- GetRulesResponse
- Throws:
TencentCloudSDKException
-
GetTopic
public GetTopicResponse GetTopic(GetTopicRequest req) throws TencentCloudSDKException
获取Topic信息- Parameters:
req
- GetTopicRequest- Returns:
- GetTopicResponse
- Throws:
TencentCloudSDKException
-
GetTopics
public GetTopicsResponse GetTopics(GetTopicsRequest req) throws TencentCloudSDKException
获取Topic列表- Parameters:
req
- GetTopicsRequest- Returns:
- GetTopicsResponse
- Throws:
TencentCloudSDKException
-
IssueDeviceControl
public IssueDeviceControlResponse IssueDeviceControl(IssueDeviceControlRequest req) throws TencentCloudSDKException
提供下发控制指令到指定设备的能力,该接口适用于使用高级版类型的产品。- Parameters:
req
- IssueDeviceControlRequest- Returns:
- IssueDeviceControlResponse
- Throws:
TencentCloudSDKException
-
PublishMsg
public PublishMsgResponse PublishMsg(PublishMsgRequest req) throws TencentCloudSDKException
提供向指定的Topic发布消息的能力,常用于向设备下发控制指令。该接口只适用于产品版本为“基础版”类型的产品,使用高级版的产品需使用“下发设备控制指令”接口- Parameters:
req
- PublishMsgRequest- Returns:
- PublishMsgResponse
- Throws:
TencentCloudSDKException
-
ResetDevice
public ResetDeviceResponse ResetDevice(ResetDeviceRequest req) throws TencentCloudSDKException
重置设备操作,将会为设备生成新的证书及清空最新数据,需谨慎操作。- Parameters:
req
- ResetDeviceRequest- Returns:
- ResetDeviceResponse
- Throws:
TencentCloudSDKException
-
UnassociateSubDeviceFromGatewayProduct
public UnassociateSubDeviceFromGatewayProductResponse UnassociateSubDeviceFromGatewayProduct(UnassociateSubDeviceFromGatewayProductRequest req) throws TencentCloudSDKException
业务无客户使用,下线接口。 取消子设备产品与网关设备产品的关联- Parameters:
req
- UnassociateSubDeviceFromGatewayProductRequest- Returns:
- UnassociateSubDeviceFromGatewayProductResponse
- Throws:
TencentCloudSDKException
-
UpdateProduct
public UpdateProductResponse UpdateProduct(UpdateProductRequest req) throws TencentCloudSDKException
提供修改产品信息及数据模板的能力。- Parameters:
req
- UpdateProductRequest- Returns:
- UpdateProductResponse
- Throws:
TencentCloudSDKException
-
UpdateRule
public UpdateRuleResponse UpdateRule(UpdateRuleRequest req) throws TencentCloudSDKException
更新规则- Parameters:
req
- UpdateRuleRequest- Returns:
- UpdateRuleResponse
- Throws:
TencentCloudSDKException
-
-