Closed universidadeglobal closed 4 years ago
Hello,
Without knowing much about node/js, it seems possible that having an instantiated device creates one or more recurrent tasks that keep node alive indefinitely and that you'll need to add a callback that shuts down the device on the appropriate event (pub ack maybe, if you're just doing a one-time operation).
What happens when you run your code locally in node?
@bretambrose Thanks for reply. I have changed my strategy. The objective is to use the code in Amazon Alexa Skill, and I have now tested with AWS SDK instead of AWS IOT SDK and works fine. Thanks a lot.
Hi, I am using a aws sdk for nodeJs in my Lambda function to publish to AWS IOT Thing topic. The payload is being published, I can confirm in test client in AWS IoT. But for some reason it is generating a timeout in function. I can configure any timeout value from 3 seconds to 3 minutes, the result is the same. Below my code: