mbed application board program with most libraries pulled in to create a feature rich starting point for hackathons

Dependencies:   C12832_lcd EthernetInterface HTTPClient LM75B MMA7660 mbed-rtos mbed

Fork of HTTPClient_HelloWorld by Donatien Garnier

AT&T M2M Mobile App Hackathon

Team's Project Pitch Notes

  • Car location and tracking system (GPS + Wifi + Cellular)
  • Temperature / auto vent control for home and industrial use (cellular + servo)
  • GPS triangulation (sonar + cellular)
  • Emergency Tool (Low cost OnStar / Sync Emergency Assistance)
  • Remote Video Conference: Tele-presense (cellular and buttons. Rest was web services)
  • M2M Billboard (LED + Cellular)
  • Order management (restaurants) - Interrupt driven service. Not polled by wait staff (level sensor and cellular)
  • pool manager (simulated ph and chem readings -> cellular)
  • sprest - learning electronic sprinkler system (simulated moisture and weather readings -> cellular)
  • safe traffic signals: stoprite (lots of statistics, used buttons and toy cars to create a scenario)
  • Ecosense

Keywords Used Frequently During Presentation

  • real-time
  • MQTT
  • Arduino
  • 2lemetry
  • HTML5
  • Big data
  • Server side

Participants

  • ARM mbed
  • 2lemetry
  • MSFT
    • One group hacked on windows phone, rest on android / iphone
    • Most were HTML5 (better looking ones)

Pictures from the Event

Revision:
5:83c272535884
Parent:
4:1ec9d1243e8b
Child:
7:f50a7529de41
--- a/main.cpp	Sun Sep 15 16:42:31 2013 +0000
+++ b/main.cpp	Sun Sep 15 19:26:19 2013 +0000
@@ -5,7 +5,8 @@
 #include "HTTPClient.h"
 EthernetInterface eth;
 HTTPClient http;
-char str[512];
+#define WEBPAGE_BUF_SIZE 4096
+char str[WEBPAGE_BUF_SIZE];
 
 //LCD
 #include "C12832_lcd.h"
@@ -35,7 +36,10 @@
 LM75B temp(p28,p27);
 
 //char const *URL = "http://mbed.org/media/uploads/donatien/hello.txt";
-char const *URL = "http://mbed.org/";
+//char const *URL = "http://mbed.org/";
+char const *URL = "https://www.google.com/";
+char const MAC[] = {0x00,0x02,0xF7,0xF0,0x00,0x00};
+void mbed_mac_address(char *mac) { memcpy(mac, MAC, sizeof(MAC)); }
 
 int main()
 {
@@ -48,14 +52,14 @@
         error("Init Failed\n");
     }
     // Try to get an IPAddress
-    if (0 != eth.connect()) {
+    if (0 != eth.connect(30000)) {
         //error("Connect Failed:\n");
     }
     // Now we are part of the network
     printf("IP Address: %s\n", eth.getIPAddress());
     //GET data
     printf("\nTrying to fetch page %s\n", URL);
-    if(!http.get(URL, str, 512)) {
+    if(!http.get(URL, str, WEBPAGE_BUF_SIZE)) {
         printf("Page fetched successfully - read %d characters\n", strlen(str));
         printf("Result: %s\n", str);
     } else {