Hello! I just began my journey on Alexa Skills development. Im trying to create a custom skill to turn on and off a smart plug based on information coming from an external API , I found examples about gathering and exporting information to an API from Alexa, but I couldn not find information about how to connect to the smart plug.
My specific question is, how does the discovery function works? , how should I describe the endpoints to connect to my Smart Plug? Do the Amazon Smart Plugs have specific IDs or how does Alexa knows that is communicating with a Specific Smart Plug, does this happen on the discovery function?
Thanks in advance!