Guest User

Untitled

a guest
Jun 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. {
  2. "code": 404,
  3. "message": "Shadow Not Found",
  4. "timestamp": 1529392914
  5. }
  6.  
  7. import greengrasssdk
  8.  
  9. def lambda_handler(event, context):
  10.  
  11. seeeduino_client = greengrasssdk.client('iot-data')
  12. client = greengrasssdk.client('iot-data') # it's used for send data to "Iot Cloud"
  13.  
  14. response = seeeduino_client.get_thing_shadow(thingName='Seeeduino_Cloud')
  15. client.publish(
  16. topic='load/successed',
  17. payload=response["payload"]
  18. )
  19. return
Add Comment
Please, Sign In to add comment