I have built Alexa on raspberry pi by following its guide on developer.amaozon.com.
I have also created a custom skill which turns on and off the TV. Currently, I am running a Flask server to control GPIO so I can UART(RX, TX) between raspberry pi and Arduino UNO. I have port forwarded local flask server IP to serveo.net and using that URL serveo.net's in Endpoint.
But serveo.net server down's after a couple of hours so I was thinking of another solution.
I have tried ngrok and everything but doesn't satisfy my need.
So I am thinking what if I can do this from Inside of Sample App. Like when I ask Alexa to turn on the TV. The response will be fetched from inside Sample App function which will validate if the response is "ON", "OFF" or "MUTE" then it will send this to Arduino using UART(RX, TX).
But I don't know how to fetch the response and where to create the function and what to use.
I am a Hardware developer and Know little python but C++ just bounces over my head and there is no proper documentation regarding the Functions and Files of Sample App from which I can help myself.
So if anyone knows how to and where to write and do this in Sample App Please Let me know.