创建IotTimerClient
更新时间:2019-06-14
用户可以参考如下代码新建一个IotTimerClient:
String accessKey = "your-access-key-id";
String secretKey = "your-secret-access-key";
String host = "re.iot.gz.baidubce.com";
// 如果是北京区域,请用 String host = "re.iot.bj.baidubce.com";
BceClientConfiguration config = new BceClientConfiguration()
.withCredentials(new DefaultBceCredentials(accessKey, secretKey))
.withEndpoint(host);
IotTimerClient client = new IotTimerClient(config);