Yesterday I configured my Raspberry Pi to connect with AWS IoT web services. Now my pi can publish and listen messages. On Pi I connected light sensor which will update shadow after every 30 sec.
Now I want to write a client (Mobile app or Web app) who will also listen to same shadow and notify me. For same reason I am trying to connect my ubuntu machine with AWS IoT using node js. Now when I run sample examples mentioned on this link I only see screen with message connected. When I update shadow from AWS console I should receive a message on node side. Am I right with my understanding or I am doing any mistake. If this is not a right approach then what is right approach?
Code am trying to execute is here
and command which I am using to execute is
nodejs examples/echo-example.js --host-name=AYYCW0HM971XS.iot.us-west-2.amazonaws.com --certificate-dir=/home/sangam/iot/certs --thing-name=thirdthing --debug