instead of the desired one. Other handlers that do simpler tasks (such as just returning a speech response) work fine. The MQTT publishing also works (I see the messages on the broker).
I'm using the Alexa SDK v2 and the AWS SDK.
I'm aware that the issue might be in the fact that I put the return statement in the callback function, but I don't know how to send a response back to Alexa in other ways. I have tried to wrap iotData.publish in another function but I'm only able to log data to console that way.
Any help about this issue would be very appreciated.
Hello, I'm having issues communicating back to Alexa after I publish an MQTT message on AWS IoT using the following handler.
I get this invalid response
instead of the desired one. Other handlers that do simpler tasks (such as just returning a speech response) work fine. The MQTT publishing also works (I see the messages on the broker).
I'm using the Alexa SDK v2 and the AWS SDK.
I'm aware that the issue might be in the fact that I put the return statement in the callback function, but I don't know how to send a response back to Alexa in other ways. I have tried to wrap iotData.publish in another function but I'm only able to log data to console that way.
Any help about this issue would be very appreciated.