Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial C12832 EndpointMain-rfid EthernetInterface Logger StatusReporter-df2014 mbed-rtos mbed
Fork of df-2014-workshop-rfid-case-generator-k64f by
Diff: main.cpp
- 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...");

