aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
975 stars 623 forks source link

Control IoT devices via Alexa #1846

Closed KadaHarshavardhan closed 1 year ago

KadaHarshavardhan commented 1 year ago

Hi Team,

I have been using AWS IoT core device SDK in C and I have ported for many Embedded devices and tested.

Couple of questions here:

  1. How do I control these ported devices via Alexa, is there any separate C SDK for it?
  2. Any architecture suggestions for it?
  3. I had seen one ESPAlexa which is in CPP, is there any C SDK or code for this.

Please let me know, as I am not familiar with how IoT devices can be controlled with Alexa?

rawalexe commented 1 year ago

Hello @KadaHarshavardhan, We are looking into your question and will get back to you soon.

AniruddhaKanhere commented 1 year ago

Hello @KadaHarshavardhan,

I am no expert in the field of "Alexa communicating with IoT device", but I am adding something here which should be at least able to help you get started :)

The basic workflow would be something like the following:

  1. Make Alexa understand that you want it to do something - use Intent and Utterances. This will create an APP_ID.
  2. Once Alexa understands what you are trying to say and what you mean, you need an intermediate helper to send the data to the AWS IoT broker. That can be a lambda in this case. You should link the APP_ID you got from the step above in this step. See here for more details. This lambda will get handle the requests made by the Alexa skill and will publish to a topic of your choice on a given endpoint.
  3. Make the device connect to AWS IoT core at the endpoint and subscribe to the topic as in step 2. When the lambda publishes the message, your device will get it and you can process it however you want.

This is a VERY high level description of the whole process. I suggest you read the documentation which I linked above before proceeding with the project. It should be quite helpful and will show you examples of how this is to be done.

Thanks, Aniruddha

johnrhen commented 1 year ago

Hello - I'm closing this issue due to inactivity. Please feel free to reopen if you have any further questions.