aliyun / iotkit-embedded

高速镜像: https://code.aliyun.com/linkkit/c-sdk
Apache License 2.0
496 stars 252 forks source link

动态注册设备,无法Publish消息,提示失败:No authorization #78

Open kingponli opened 5 years ago

kingponli commented 5 years ago

使用IOT_Subdevice_Register函数动态注册设备,然后publish消息,IOT控制台显示:失败:No authorization 使用subdev-example.c中的例子也是如此

lifang870603 commented 5 years ago

动态注册子设备需要开通权限,具体请参看阿里云官网关于子设备的介绍。

guyanbiao commented 5 years ago

你看下你是不是往 /a1t33GfOMp5/${deviceName}/data 发的数据啊,这个 topic 要自己在控制台建立的