Test Pairing and Discovery
This topic contains tests that indicate whether your gadget can successfully communicate with an Echo device.
Before performing these tests, ensure that you have done the following:
- Register your gadget – Register your gadget in the developer portal, as described in Register a Gadget. You will receive a secret key at the end.
- Get an Amazon Echo device – Get an Echo device and register it to the account that you used to register the gadget in the developer portal. For a list of Echo devices that support gadgets, see Echo devices that support gadgets.
- Configure communication channel settings – Set the Bluetooth pairing parameters of your gadget to the settings described in Gadget Settings for Classic Bluetooth.
- Set up the gadget to receive directives – Have code in place to accept the
- Set up the gadget to send events – Have code in place to assemble and send the
Discover.Responseevent in response to the
- Put the gadget into pairing mode.
- Put the Echo device into pairing mode. If your Echo device has a screen, follow the on-screen instructions for pairing. If your device does not have a screen, do the following:
- Go to the Amazon Alexa app (alexa.amazon.com) and sign in with your Amazon developer account.
- On the left, select Settings.
- From the Device list, select your Echo device.
- Under Connected Devices, select Pair Alexa Gadget, and follow the instructions. If you can successfully pair your gadget, the gadget's Bluetooth settings are correct.
Test a directive
Continuing from the test above:
- Once paired, the Echo device will send a
Discoverdirective to your gadget with a request to respond with a
Discover.Responseevent. If your gadget receives the
Discoverdirective, your gadget and the Echo device have successfully established a communication channel.
- Your gadget should respond with a
- Say "Alexa" to the Echo device. Your gadget should receive a
Alexa.Gadget.StateListener.StateUpdatedirective notifying it that the wake word was detected.