September 18, 2009
Here we have a sample demo of sending and receiving SMS (text messages) in real-time using APE‘s libape_controller. We also utilize an SMS gateway called Esendex which is a UK based company – hence the name EsenAPE. When a message is sent to Esendex (e.g. you reply to the text you sent yourself) it will call a URL (RPC.php) we can then pass this onto APE for updating the users UI. The idea originated from a project I’ve just completed with work, Alert and Respond which basically does what this demo does but not in real time (polls every 30 seconds). It’s a good example of how to use the libape_controller – let me know what you think
This is just a proof of concept and shouldn’t be taken as a full application, it’s easy to use; enter your mobile number (with country code!), enter your message and click send. Once you’ve received the message on your phone you can reply to it and within seconds it’ll appear in your browser!
Please download the source and view my comments. Also, as SMS credits costs money I have only 20 remaining on the account so please only send one/two otherwise your IP address will be meeting my iptables. You can reply to the text as many times as you want.
Just a small note; I’ve tested this from the UK and SMS’ take less than one second to arrive to my phone and around 2 seconds until they appear on the screen of EsenAPE when I reply. innociv (from the USA) sent an SMS to his phone and took around 3 seconds. Please don’t forget to use your country code (001 for the USA).
© 2013 Paul's Blog
Comments or opinions expressed on the blog are those of their respective contributors only. I am not responsible for, and disclaims any and all liability for the content of comments written by contributors to the blog.