Open kingponli opened 5 years ago
使用IOT_Subdevice_Register函数动态注册设备,然后publish消息,IOT控制台显示:失败:No authorization 使用subdev-example.c中的例子也是如此
动态注册子设备需要开通权限,具体请参看阿里云官网关于子设备的介绍。
你看下你是不是往 /a1t33GfOMp5/${deviceName}/data 发的数据啊,这个 topic 要自己在控制台建立的
/a1t33GfOMp5/${deviceName}/data
使用IOT_Subdevice_Register函数动态注册设备,然后publish消息,IOT控制台显示:失败:No authorization 使用subdev-example.c中的例子也是如此