Giter Site home page Giter Site logo

buzzbox's Introduction

Buzzbox

An example application that demonstrates how to send SMS or MMS messages with an ESP8266 connected to a friendly WiFi network, when IR,PIR & Ultrasonic sensors are triggered all at once

Please read Twilio's sending messages article and Twilio's receiving and replying to messages article for more information.

Once this application is loaded to the ESP8266 it will:

  1. Send an SMS (or MMS if you choose) to a number
  2. Start a webserver with the route '/message'
  3. Listen for requests to '/message' and respond with a canned response or by reacting to a command from the master number.

Build example:

In Arduino IDE, first ensure your ESP8266 is burned with the Arduino bootloader and connected. Then, merely adjust the globals at the top of the .ino file and hit the 'Upload' button.

You'll then want to edit the following variables in twilio_esp8266_arduino_example.ino:

  • ssid: Your network SSID
  • password: Network's password
  • fingerprint (maybe): The SHA1 Fingerprint of api.twilio.com, you can check with a web browser
  • account_sid: from twilio.com/console
  • auth_token: from twilio.com/console
  • to_number: A number to send the test SMS (or MMS) to
  • from_number: An number from twilio.com/console authorized to send SMS and/or MMSes
  • message_body: Message body to send
  • master_number: 'Authorized' number for this ESP8266 example
  • media_url (optional): Url to an image to send a test MMS

Run example:

Will run automatically once uploaded to the board. If you do not get a message, enable serial debugging.

Either serial debugging or perhaps a peek at your router screen will reveal the assigned IP address of the ESP8266. :8000/message is the webhook of interest; use ngrok or another means to espose it to Twilio. Note that you'll need to provide a https endpoint!

Fingerprint failure

The most common reason the sketch fails (assumign you correctly copied credentials) is the api.twilio.com certificate changes. See this section of the Twilio Docs to update the fingerprint in your code.

Motivations

Hopefully you can use this as the base of your ESP8266 project with Twilio!

Meta & Licensing

buzzbox's People

Contributors

dangerdev004 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.