Work with nodejs server: https://github.com/bjo3rn/idd-examples/tree/ben-node-demo/web/nodeServerHTTPSocket
Dependencies: HTTPClient WebSocketClient cc3000_hostdriver_mbedsocket mbed
Fork of CC3000_demo by
Diff: main.cpp
- Revision:
- 8:594cb3bc6f0f
- Parent:
- 7:47cd0d3d5e4d
- Child:
- 9:f80b62b60b1c
diff -r 47cd0d3d5e4d -r 594cb3bc6f0f main.cpp --- a/main.cpp Fri Oct 10 23:38:09 2014 +0000 +++ b/main.cpp Fri Oct 10 23:54:39 2014 +0000 @@ -13,6 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + + /** + * \brief EECS149 demo + * \author Antonio Iannopollo + */ + #include "mbed.h" #include "cc3000.h" #include "main.h" @@ -57,7 +63,7 @@ pc.baud(115200); led_red = 1; - led_green = 0; + led_green = 1; printf("EECS149 email notifier. \r\n"); wifi.init(); @@ -68,6 +74,8 @@ printf("Failed to connect. Please verify connection details and try again. \r\n"); } else { printf("IP address: %s \r\n",wifi.getIPAddress()); + led_red = 1; + led_green = 0; } } else { //GET mail data