MBED_DEMOS / Mbed 2 deprecated df-2014-rfid-case-gen-k64f-exercise

Dependencies:   BufferedSerial C12832 EndpointMain-rfid EthernetInterface Logger StatusReporter-df2014 mbed-rtos mbed

Fork of df-2014-workshop-rfid-case-generator-k64f by Doug Anson

Revision:
20:f548e2de5b0b
Parent:
19:341ce6a43a84
Child:
22:1b9e29933ab3
diff -r 341ce6a43a84 -r f548e2de5b0b main.cpp
--- a/main.cpp	Fri Aug 29 03:39:51 2014 +0000
+++ b/main.cpp	Fri Aug 29 04:25:50 2014 +0000
@@ -31,6 +31,10 @@
  #include "EthernetInterface.h"
  EthernetInterface ethernet;
  
+ // HTTP 
+ #include "HTTPClient.h"
+ HTTPClient http;
+ 
  // HARD RESET
 extern "C" void HardFault_Handler() { NVIC_SystemReset(); }
 
@@ -55,7 +59,7 @@
         logger.log("IP Address: %s",ethernet.getIPAddress());
         
         // create the StatusReporter
-        StatusReporter status_reporter(&logger);
+        StatusReporter status_reporter(&logger,(void *)&http);
         
         // entering main loop
         logger.log("Entering Main Loop...\r\nScanning...");