I created an API in Node.js to connect my iOS app to my database.
In my app, I have a button to start an action which will be connected to my Raspberry Pi. This action will happened after verifications in my database.
I don't know what I should use or do, do I need to create a separate server to handle my actions? How should I use the AWS IoT service?
What should I insert into my Raspberry? I read about sockets, but is it the right solution?
I'm a little bit lost and I hope you could help me.