![]() There are quite a few steps here, so we've condensed them for you to take it a step at a time: We’re going to use Amazon’s API Gateway to expose the endpoint Twilio will hit when it sees incoming messages. Mock an API Endpoint with AWS API Gateway We can then respond in the same way we did in the sending guide - by using the Lambda send message function. Remember, the LinkIt ONE is already subscribed to the MQTT twilio topic we simply need to add some business logic which reacts to incoming messages. ![]() API Gateway will trigger Lambda, which we will give permission to post directly to the twilio topic on MQTT. Now, when Twilio receives and incoming message, it will post to an endpoint you expose with API Gateway. We're going to turn the architecture from the sending article on its head for this objective. As before, this code will work with either Programmable Wireless or WiFi.Īlready ran through the last guide? Awesome, let's let the LinkIt talk back! Building Infrastructure to Receive Incoming Messages We'll be building on top of the same infrastructure in this post, and will assume you have it in place. ![]() If you haven't done so yet, run through our guide on sending SMS or MMSes with the LinkIt ONE and Twilio Programmable Wireless. Upon receiving an incoming SMS or MMS, a Twilio number will trigger a Webhook that sets our infrastructure in motion. Want to receive - and react to - SMS and MMS messages on a LinkIt ONE? We'll help you do just that today, using Twilio's Programmable Wireless and Amazon Web Services' IoT, API Gateway, and Lambda. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |