Sending text messages using lambda with AWS IOT button
- Buy IOT button from Amazon
- Create an AWS developer account
- Download IOT developer app on your mobile phone and complete setup
- Choose a lambda function to invoke when button is pressed (Or use default lambda function that was created when you completed the setup on your app)
- Update lambda role to get admin access in IAM in AWS console
- Click single or double or long to send the event to lambda from button
- Update config file to change phone number, button serial number and update lambda function to handle the event if you need additional functionality
- Sample event will look like this:
{
"serialNumber": "GXXXXXXXXXXXXXXXXX",
"batteryVoltage": "xxmV",
"clickType": "SINGLE" | "DOUBLE" | "LONG"
}