title: AWS IOT: Read Thing Shadow
body: <p>the aws iot javascript sdk is a bit abstruse.
  i have a thing shadow, that i just want to read out. no biggie (i thought)</p>
  
  <p>i don't know what functions i need to use, to just read out the thing shadow data.
  The Connection to AWS works fine, but whatever im trying to do, i don't receive any data.</p>
  
  <p>heres my code so far:</p>
  
  <pre><code>var awsIot = require('aws-iot-device-sdk');
  
  var name = 'Testthing';
  
  var shadow = awsIot.thingShadow({
     keyPath: 'cert/privkey.pem', 
    certPath: 'cert/cert.pem',
      caPath: 'cert/rootCA.crt',
    clientId: "testapp",
        host: "xxx"
  });
  
  
  shadow.on('connect', function() {
    shadow.register('Testthing'); 
  });
  
  shadow.get(name, data) { // something like this..
    console.log(data);
  });
  </code></pre>
  
  <p>Thanks in advance!</p>