
IoT Button Events and AWS Lambda with Ruby on Jets
In this video tutorial, we’ll cover IoT Events and how to connect them up to AWS Lambda Functions with Ruby on Jets. We’ll explain what IoT Events are and then build a Jets project from scratch and add a Jets iot_event
declaration. We’ll use a real physical AWS IoT Button and have the button send a text message to a phone. We’ll show you how simple it is to get started with Jets and IoT Event rules.
Example
class ThermostatJob < ApplicationJob
iot_event "SELECT * FROM 'my/topic'"
def measure
puts "event #{JSON.dump(event)}"
end
end
- Ruby on Jets IoT Events Docs
- The full source code is available on GitHub: tongueroo/jets-iot-button-example
Hope you’ve enjoyed this article. If you find AWS Lambda, Serverless and Ruby on Jets interesting, please give it ⭐️ on GitHub. I’d appreciate it. 👍
Jets Events Series
Thanks for reading this far. If you found this article useful, I'd really appreciate it if you share this article so others can find it too! Thanks 😁 Also follow me on Twitter.
Got questions? Check out BoltOps.