Initial version, CyaSSL Twilio example

Dependencies:   HTTPClient EthernetInterface mbed-rtos mbed

This simple Twilio example works with HTTPS based Twilio API from mbed, makes a call to your phone and talks text speech message.

For using this example:

- Prepare mbed with Ethernet connection.

- Go to http://twilio.com, and sign up.

- Copy Twilio Sid, Token, phone number and TwiML URL in twilio.cpp.

static char twilio_AccountSid[] = "TWILIO_ACCOUNT_SID" ;
static char twilio_AuthToken[]  = "AUTH_TOKEN" ;
static const char twilio_From[] = "PHONE_NUMBER_FROM" ;
static const char twilio_To[] = "PHONE_NUMBER_TO" ;
static const char twilio_Url[]  = "http://twimlbin.com/TWIML_PATH" ;

- The demo makes a call from Twilio to your phone. Set the phone numbers onto twilio_From and twilio_To.

- Set up a TwiML web page defining Twilio action, set the url to twilio_Url.

TwiML first step example:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
	<Say language="ja-JP">もしもし。聞こえますか?こちらツイリオです</Say>
</Response>

- Build, download it to mbed, and you will get a call on your phone.

Have fun!

For FRDM-k64f: http://mbed.org/users/wolfSSL/code/CyaSSL-Twilio-FRDM/

日本語:http://mbed.org/users/wolfSSL/code/CyaSSL-Twilio/wiki/CyaSSL-Twilio-jp

Files at this revision

API Documentation at this revision

Comitter:
wolfSSL
Date:
Sat Jul 12 12:12:52 2014 +0000
Parent:
2:721c40dc1e01
Commit message:
CyaSSL under HTTPClient class

Changed in this revision

CyaSSL.lib Show diff for this revision Revisions of this file
HTTPClient.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 721c40dc1e01 -r 4c3c4b46a11a CyaSSL.lib
--- a/CyaSSL.lib	Sat Jul 12 08:01:43 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/wolfSSL/code/CyaSSL/#1239e9b70ca2
diff -r 721c40dc1e01 -r 4c3c4b46a11a HTTPClient.lib
--- a/HTTPClient.lib	Sat Jul 12 08:01:43 2014 +0000
+++ b/HTTPClient.lib	Sat Jul 12 12:12:52 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/wolfSSL/code/HTTPClient/#1bef4962dd61
+http://mbed.org/users/wolfSSL/code/HTTPClient/#531f03a263a9