Skip to content

Instantly share code, notes, and snippets.

@jonmarkgo
Created June 18, 2012 19:24
Show Gist options
  • Save jonmarkgo/2950207 to your computer and use it in GitHub Desktop.
Save jonmarkgo/2950207 to your computer and use it in GitHub Desktop.
app setup
var express = require('express'), app = express.createServer(), net = require('net'), twilioAPI = require('twilio-api');
var cli = new twilioAPI.Client(process.env.account_sid, process.env.auth_token);
app.use(cli.middleware());
app.listen(8002);
var arduinoTcp = null;
var curr_call = null;
var tcpServer = net.createServer(function (socket) {
console.log('tcp server running on port 1337');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment