aws-iot-button
aws-iot-button copied to clipboard
Missing step in directions?
After following the instructions in the readme, the AWS IoT business rule is misconfigured. Resolved it with the following steps:
- Log into your AWS console at https://aws.amazon.com
- Go to the AWS IoT service
- Click "Act" in the lefthand menu. Rules dashboard comes up
- Click the card for the rule that matches your device
- Next to the "Rule Query Statement" heading, click edit
- Look at the topic filter. It says /button_pressed. This is incorrect. Change it to the actual topic name your device is publishing to: YOUR_DEVICE_NAME/button_pressed
If you don't know your device name, you can connect your esp32, run the terminal command 'mos console' and, if you've set up correctly, you can press the button and see the full topic name, e.g.
[Mar 10 13:48:58.508] Published: yes topic: esp32_12345/button_pressed message: {"free_ram":150572,"total_ram":229788}