using websocket to dynamic display sensor data on webpage; sends alert email from mbed.

Dependencies:   BroadcastSend EthernetInterface OneWire2 SimpleSMTPClient mbed-rpc mbed-rtos

Committer:
cryptoc
Date:
Thu Feb 18 20:04:08 2016 +0000
Revision:
3:26beaa8b94ce
Parent:
2:6d4f47f0341a
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cryptoc 2:6d4f47f0341a 1 /**
cryptoc 2:6d4f47f0341a 2
cryptoc 0:9bb9ffde0d91 3 xAP enabed one wire master Part II
cryptoc 0:9bb9ffde0d91 4 Author: Zhongying Qiao
cryptoc 0:9bb9ffde0d91 5 Date: 9th March 2014
cryptoc 0:9bb9ffde0d91 6 Tested working 3rd March 2014 Qiao
cryptoc 0:9bb9ffde0d91 7
cryptoc 0:9bb9ffde0d91 8 Description of the program:
cryptoc 0:9bb9ffde0d91 9
cryptoc 0:9bb9ffde0d91 10 The program is intended for master-slave communication between mbed and DS1920 thermometer iButton
cryptoc 0:9bb9ffde0d91 11
cryptoc 0:9bb9ffde0d91 12 -> Program will first connect to Ethernet, display temperature info and device ID dynamically
cryptoc 0:9bb9ffde0d91 13 onto a webpage: sockets.mbed.org/ choose 'ws' for channel 'georg' (see address in code below)
cryptoc 0:9bb9ffde0d91 14
cryptoc 0:9bb9ffde0d91 15 -> Once the temperature measurement exceeds a preset threshold, an Email is be sent by mbed to a gmail
cryptoc 0:9bb9ffde0d91 16 account. The simple SMTP client the program uses does not support SSL/TLS, therefore we use the alternative
cryptoc 0:9bb9ffde0d91 17 SMTP server aspmx.l.google.com provided by Google that works with TCP port 25. (It was orginally intended
cryptoc 0:9bb9ffde0d91 18 for printer/scanner without SSL/TLS capacity so as to send scanned files to user)
cryptoc 0:9bb9ffde0d91 19
cryptoc 0:9bb9ffde0d91 20 -> To see how the program can interact with twitter API to tweet via mbed, import program "xAP_enable_oneWire_Master_Part1";
cryptoc 0:9bb9ffde0d91 21
cryptoc 2:6d4f47f0341a 22 **/