I am currently using the javascript AWS Iot SDK. Adapting the example provided here, I have been able to register with my thingShadow, and I am trying to publish an update after registration. However, when I do, I get the following error message:
cannot publish to reserved topic '$aws/things/<thingName>/shadow/update'
I understand the '$' indicates that this is a reserved topic, but Amazon's documentation (http://docs.aws.amazon.com/iot/latest/developerguide/topics.html) states that publish and subscribe operations are allowed for this reserved topic. If that is the case, I am not sure why my attempt to publish is resulting in an error. This snippet demonstrates how I attempt to publish in my connection callback:
shadows.register(<thingName>, {
persistentSubscribe: true
}, () => {
shadows.publish('$aws/things/<thingName>/shadow/update', <message>);
});
<thingName>
in the literal string you've shown atshadows.publish('$aws/things/<thingName>/shadow/update', <message>);
... right? There's an actual valid thing name here? – Michael - sqlbot