• You will have fun with the Espruino-Wifi boards... you can run them from a USB power bank - the things you use to give more talk time to your cell phone. Adding the buttons is easy too: just connect the one side of the push button to an input pin and the other one to ground. The input pin you configure to use the internal pull-up resistor. You are obviously familiar w/ js... which makes getting the software going quickly.

    Questions I have are:

    • How quickly after the pressing of the button has the node.js server to get the post (or get request)?
    • How often are these buttons pressed? ...one and the other?
    • Is Twilio doing a push-notification? ...or do you think about pulling? (Espruino-Wifi has two LEDs - green and red - that could indicate the state of each of the variables: steady: on, blinking: off... if they are booleans)


  • Thanks for responding! Great news about the easy setup of the button.

    Both buttons will be pressed pretty frequently. Maybe 10-20 times each per minute.
    Ideally the lag between a button press and the variable change is < 2 seconds.

    Twilio would be sending a basic SMS text message when the variable (integer) are at a specific value.

    EDIT: It would be awesome if the script could run locally on one of the boards if it minimized delay, but then I would somehow have one board send the HTTP request to the other board running as an Express server or something. Is this possible?

About

Avatar for allObjects @allObjects started