【发布时间】:2017-10-10 14:11:24
【问题描述】:
如何使用适用于 Android 的 AWS sdk 在 AWS IoT 中创建事物?每次我尝试执行我的代码时,它都会因网络异常错误而失败。我的目标是创建一个具有事物名称的事物,该名称将在 AWS IoT 仪表板中可见。以下是我尝试过的。
CreateThingRequest thingRequest = new CreateThingRequest();
thingRequest.withThingName("NewTestThing");
CreateThingResult thingResult = mIoTAndroidClient.createThing(thingRequest);
【问题讨论】: