Reputation: 67
I creating a smart home alexa skill, I study a lot of things and I need to use directives but I don't know how do I get the device_id to test in my devices, I use the example "https://developer.amazon.com/en-US/docs/alexa/smarthome/steps-to-build-a-smart-home-skill.html" from this page. I don't understand how I get the devices id's. Anybory know if I'm doing this correctly?
Upvotes: 2
Views: 737
Reputation: 10154
Hmmm, the only place I see "device id" on the page you provided is in the comment. Honestly I'm not sure what it is. Maybe it's a documentation bug.
Normally it works like this:
directive.endpoint.endpointId
.You can extra data in the cookie
. Data sent in cookie in discovery is reflected in every directive, when your skill is called.
Upvotes: 0