/**
* Get a short-lived claiming token for transmitting to soon-to-be-claimed device in
* soft AP setup process
*
* @return a claim code string set on success (48 random bytes, base64 encoded
* to 64 ASCII characters)
*/
@WorkerThread
public Responses.ClaimCodeResponse generateClaimCode() throws ParticleCloudException {
try {
// Offer empty string to appease newer OkHttp versions which require a POST body,
// even if it's empty or (as far as the endpoint cares) nonsense
return mainApi.generateClaimCode("okhttp_appeasement");
} catch (RetrofitError error) {
throw new ParticleCloudException(error);
}
}
ParticleCloud.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:xlight_android_native
作者:
评论列表
文章目录